Skip to content

Commit

Permalink
Added Bnpl types constants
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaryska committed Sep 6, 2024
1 parent f36ae0f commit ad606fc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions src/Definition/Payment/BnplType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace GoPay\Definition\Payment;

class BnplType
{
const DEFERRED_PAYMENT = 'DEFERRED_PAYMENT';
const PAY_IN_THREE = 'PAY_IN_THREE';
}
8 changes: 4 additions & 4 deletions tests/integration/CreatePaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
require_once 'TestUtils.php';

use GoPay\Definition\Language;
use GoPay\Definition\Payment\BnplType;
use GoPay\Definition\Payment\Currency;
use GoPay\Definition\Payment\PaymentInstrument;
use GoPay\Definition\Payment\BankSwiftCode;
Expand Down Expand Up @@ -42,15 +43,14 @@ public static function createBasePayment()
# PaymentInstrument::SKIPPAY
],
# 'allowed_bnpl_types' => [
# 'LATER',
# 'THIRDS'
# BnplType::DEFERRED_PAYMENT,
# BnplType::PAY_IN_THREE
# ],
# 'default_bnpl_type' => 'LATER',
# '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,
# 'default_payment_instrument' => PaymentInstrument::TWISTO,
'contact' => [
'email' => '[email protected]',
],
Expand Down

0 comments on commit ad606fc

Please sign in to comment.