Skip to content

Commit

Permalink
feat: let set GooglePay & ApplePay methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmp33 authored Mar 5, 2024
1 parent e2636cd commit e836831
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Sermepa/Tpv/Tpv.php
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ public function setTradeName($tradename = '')
* z = Bizum
* p = PayPal
* N = Masterpass
* xpay = GooglePay y ApplePay
* ]
*
* @return $this
Expand All @@ -639,7 +640,7 @@ public function setMethod($method = 'C')
throw new TpvException('Add pay method');
}

if (!in_array($method, ['T', 'C', 'R', 'D', 'z', 'p', 'N'])) {
if (!in_array($method, ['T', 'C', 'R', 'D', 'z', 'p', 'N', 'xpay'])) {
throw new TpvException('Pay method is not valid');
}

Expand Down

0 comments on commit e836831

Please sign in to comment.