diff --git a/.gitignore b/.gitignore index af83aad..104edb3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # IDE /nbproject/ .idea +/gopay-php-api.iml # APP /vendor/ diff --git a/gopay-php-api.iml b/gopay-php-api.iml new file mode 100644 index 0000000..19182b1 --- /dev/null +++ b/gopay-php-api.iml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/src/Definition/Payment/BnplType.php b/src/Definition/Payment/BnplType.php new file mode 100644 index 0000000..1b1fb91 --- /dev/null +++ b/src/Definition/Payment/BnplType.php @@ -0,0 +1,9 @@ + [ - 'allowed_payment_instruments' => [ - PaymentInstrument::BANK_ACCOUNT, - PaymentInstrument::PAYMENT_CARD + 'payer' => [ + 'allowed_payment_instruments' => [ + PaymentInstrument::BANK_ACCOUNT, + PaymentInstrument::PAYMENT_CARD, + # PaymentInstrument::TWISTO, + # PaymentInstrument::SKIPPAY + ], + # 'allowed_bnpl_types' => [ + # BnplType::DEFERRED_PAYMENT, + # BnplType::PAY_IN_THREE + # ], + # 'default_bnpl_type' => BnplType::DEFERRED_PAYMENT, + # 'default_payment_instrument' => PaymentInstrument::TWISTO + 'allowed_swifts' => [BankSwiftCode::RAIFFEISENBANK, BankSwiftCode::CESKA_SPORITELNA], + # 'default_swift' => BankSwiftCode::FIO_BANKA, + # 'default_payment_instrument' => PaymentInstrument::BANK_ACCOUNT, + 'contact' => [ + 'email' => 'test.test@gopay.cz', + ], ], - 'allowed_swifts' => [BankSwiftCode::RAIFFEISENBANK, BankSwiftCode::CESKA_SPORITELNA], - //'default_swift' => BankSwiftCode::FIO_BANKA, - //'default_payment_instrument' => PaymentInstrument::BANK_ACCOUNT, - 'contact' => [ - 'email' => 'test.test@gopay.cz', + 'order_number' => '9876', + 'amount' => 2300, + 'currency' => Currency::CZECH_CROWNS, + 'order_description' => '9876Description', + 'lang' => Language::CZECH, + 'additional_params' => [ + array('name' => 'invoicenumber', 'value' => '2015001003') + ], + 'items' => [ + ['name' => 'item01', 'amount' => 2300, 'count' => 1], + ], + 'callback' => [ + 'return_url' => 'https://eshop123.cz/return', + 'notification_url' => 'https://eshop123.cz/notify' ], - ], - 'order_number' => '9876', - 'amount' => 2300, - 'currency' => Currency::CZECH_CROWNS, - 'order_description' => '9876Description', - 'lang' => Language::CZECH, - 'additional_params' => [ - array('name' => 'invoicenumber', 'value' => '2015001003') - ], - 'items' => [ - ['name' => 'item01', 'amount' => 2300, 'count' => 1], - ], - 'callback' => [ - 'return_url' => 'https://eshop123.cz/return', - 'notification_url' => 'https://eshop123.cz/notify' - ], ]; return $basePayment;