From 1d4132d8c70b65b5356392d8926dde07a4bec5ec Mon Sep 17 00:00:00 2001 From: Djellze Bllaca Date: Thu, 19 Feb 2026 15:50:12 +0100 Subject: [PATCH 1/2] BTI-622 Add payRemainder support for GooglePay --- example/transactions/googlepay.php | 10 ++++++++++ src/PaymentMethods/GooglePay/GooglePay.php | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/example/transactions/googlepay.php b/example/transactions/googlepay.php index b9551a6..63698bf 100644 --- a/example/transactions/googlepay.php +++ b/example/transactions/googlepay.php @@ -15,6 +15,16 @@ 'customerCardName' => 'John Doe', ]); +//Pay +// Note: paymentData should be the base64 encoded token from Google Pay API +$response = $buckaroo->method('googlepay')->payRemainder([ + 'originalTransactionKey' => '9AA4C81A08A84FA7B68E6A6A6291XXXX', + 'amountDebit' => 10, + 'invoice' => uniqid(), + 'paymentData' => 'BASE64_ENCODED_GOOGLE_PAY_TOKEN', + 'customerCardName' => 'John Doe', +]); + //Refund $response = $buckaroo->method('googlepay')->refund([ 'amountCredit' => 10, diff --git a/src/PaymentMethods/GooglePay/GooglePay.php b/src/PaymentMethods/GooglePay/GooglePay.php index 2194d23..6bee14d 100644 --- a/src/PaymentMethods/GooglePay/GooglePay.php +++ b/src/PaymentMethods/GooglePay/GooglePay.php @@ -22,4 +22,13 @@ public function pay(?Model $model = null): TransactionResponse { return parent::pay($model ?? new Pay($this->payload)); } + + /** + * @param Model|null $model + * @return TransactionResponse + */ + public function payRemainder(?Model $model = null): TransactionResponse + { + return parent::payRemainder($model ?? new Pay($this->payload)); + } } From 5f3a25c6a82e82af0e8724e703e88231fce0de5e Mon Sep 17 00:00:00 2001 From: Djellze Bllaca Date: Thu, 19 Feb 2026 15:56:46 +0100 Subject: [PATCH 2/2] bump version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 29c891b..6158ef9 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "buckaroo/sdk", "description": "Buckaroo payment SDK", "license": "MIT", - "version": "1.23.0", + "version": "1.23.1", "type": "library", "require": { "php": ">=7.4|^8.0",