Skip to content

Commit

Permalink
add/payment methods
Browse files Browse the repository at this point in the history
  • Loading branch information
0zd0 committed Jun 11, 2024
1 parent 8bba2f5 commit 2d97840
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 31 deletions.
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 57 additions & 25 deletions includes/Gateways/ReepayCheckout.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace Reepay\Checkout\Gateways;

use Billwerk\Sdk\Enum\PaymentMethodEnum;
use Billwerk\Sdk\Exception\BillwerkApiException;
use Exception;
use Reepay\Checkout\Utils\LoggingTrait;
Expand Down Expand Up @@ -246,31 +247,62 @@ public function init_form_fields() {
'type' => 'multiselect',
'css' => 'height: 250px',
'options' => array(
'card' => 'All available debit / credit cards',
'dankort' => 'Dankort',
'visa' => 'VISA',
'visa_dk' => 'VISA/Dankort',
'visa_elec' => 'VISA Electron',
'mc' => 'MasterCard',
'amex' => 'American Express',
'mobilepay' => 'MobilePay',
'viabill' => 'ViaBill',
'klarna_pay_later' => 'Klarna Pay Later',
'klarna_pay_now' => 'Klarna Pay Now',
'klarna_slice_it' => 'Klarna Slice It',
'resurs' => 'Resurs Bank',
'swish' => 'Swish',
'diners' => 'Diners Club',
'maestro' => 'Maestro',
'laser' => 'Laser',
'discover' => 'Discover',
'jcb' => 'JCB',
'china_union_pay' => 'China Union Pay',
'ffk' => 'Forbrugsforeningen',
'paypal' => 'PayPal',
'applepay' => 'Apple Pay',
'googlepay' => 'Google Pay',
'vipps' => 'Vipps',
PaymentMethodEnum::CARD => 'All available debit / credit cards',
PaymentMethodEnum::DANKORT => 'Dankort',
PaymentMethodEnum::VISA => 'VISA',
PaymentMethodEnum::VISA_ELEC => 'VISA Electron',
PaymentMethodEnum::MC => 'MasterCard',
PaymentMethodEnum::AMEX => 'American Express',
PaymentMethodEnum::MOBILEPAY => 'MobilePay Online',
PaymentMethodEnum::MOBILEPAY_SUBSCRIPTIONS => 'MobilePay Subscriptions',
PaymentMethodEnum::VIABILL => 'ViaBill',
PaymentMethodEnum::ANYDAY => 'AnyDay',
PaymentMethodEnum::RESURS => 'Resurs Bank',
PaymentMethodEnum::SWISH => 'Swish',
PaymentMethodEnum::VIPPS => 'Vipps',
PaymentMethodEnum::VIPPS_RECURRING => 'Vipps Recurring',
PaymentMethodEnum::DINERS => 'Diners Club',
PaymentMethodEnum::MAESTRO => 'Maestro',
PaymentMethodEnum::LASER => 'Laser',
PaymentMethodEnum::DISCOVER => 'Discover',
PaymentMethodEnum::JCB => 'JCB',
PaymentMethodEnum::CHINA_UNION_PAY => 'China Union Pay',
PaymentMethodEnum::FFK => 'Forbrugsforeningen',
PaymentMethodEnum::PAYPAL => 'PayPal',
PaymentMethodEnum::APPLEPAY => 'Apple Pay',
PaymentMethodEnum::GOOGLEPAY => 'Google Pay',
PaymentMethodEnum::KLARNA_PAY_LATER => 'Klarna Pay Later',
PaymentMethodEnum::KLARNA_PAY_NOW => 'Klarna Pay Now',
PaymentMethodEnum::KLARNA_SLICE_IT => 'Klarna Slice It',
PaymentMethodEnum::KLARNA_DIRECT_BANK_TRANSFER => 'Klarna Direct Bank Transfer',
PaymentMethodEnum::KLARNA_DIRECT_DEBIT => 'Klarna Direct Debit',
PaymentMethodEnum::IDEAL => 'iDEAL',
PaymentMethodEnum::BLIK => 'BLIK',
PaymentMethodEnum::P24 => 'Przelewy24 (P24)',
PaymentMethodEnum::VERKKOPANKKI => 'Finnish banks',
PaymentMethodEnum::GIROPAY => 'giropay',
PaymentMethodEnum::SEPA => 'SEPA Direct Debit',
PaymentMethodEnum::BANCOMATPAY => 'BANCOMAT Pay',
PaymentMethodEnum::BANCONTACT => 'Bancontact',
PaymentMethodEnum::EPS => 'EPS',
PaymentMethodEnum::ESTONIA_BANKS => 'Estonian Banks',
PaymentMethodEnum::LATVIA_BANKS => 'Latvian Banks',
PaymentMethodEnum::LITHUANIA_BANKS => 'Lithuanian Banks',
PaymentMethodEnum::MB_WAY => 'MB Way',
PaymentMethodEnum::MULTIBANCO => 'Multibanco',
PaymentMethodEnum::MYBANK => 'mBank',
PaymentMethodEnum::PAYCONIQ => 'Payconiq',
PaymentMethodEnum::PAYSAFECARD => 'Paysafecard',
PaymentMethodEnum::PAYSERA => 'Paysera',
PaymentMethodEnum::POSTFINANCE => 'PostFinance',
PaymentMethodEnum::SATISPAY => 'Satisfy',
PaymentMethodEnum::TRUSTLY => 'Trustly',
PaymentMethodEnum::TWINT => 'Twint',
PaymentMethodEnum::WECHATPAY => 'WeChat Pay',
PaymentMethodEnum::SANTANDER => 'Santander',
PaymentMethodEnum::OFFLINE_BANK_TRANSFER => 'Bank Transfer',
PaymentMethodEnum::OFFLINE_CASH => 'Cash',
PaymentMethodEnum::OFFLINE_OTHER => 'Other',
),
'default' => array(),
),
Expand Down

0 comments on commit 2d97840

Please sign in to comment.