Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test-group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
APPLE_PAY_MERCHANT_ID_CERT: ${{ secrets.APPLE_PAY_MERCHANT_ID_CERT }}
APPLE_PAY_MERCHANT_ID_CERT_COMBINED: ${{ secrets.APPLE_PAY_MERCHANT_ID_CERT_COMBINED }}
APPLE_PAY_MERCHANT_ID_KEY: ${{ secrets.APPLE_PAY_MERCHANT_ID_KEY }}
UNZER_PAPI_VERBOSE_TEST_LOGGING: ${{ vars.UNZER_PAPI_VERBOSE_TEST_LOGGING }}
steps:
- uses: actions/checkout@v3
- name: Setup PHP
Expand Down
6 changes: 4 additions & 2 deletions src/Constants/ExemptionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/
class ExemptionType
{
public const LOW_VALUE_PAYMENT = 'lvp';
public const TRANSACTION_RISK_ANALYSIS = 'tra';
public const LOW_VALUE_PAYMENT = 'lvp';
public const TRANSACTION_RISK_ANALYSIS = 'tra';
public const SECURE_CORPORATE_PAYMENT = 'scp';
public const NO_EXEMPTION = 'no_exemption';
}
5 changes: 4 additions & 1 deletion test/integration/PaymentTypes/CardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ public function cardWith3dsFlagShouldSetItAlsoInTransactions(): void
* Verfify card transaction can be used with exemptionType
*
* @test
* @group CC-1144
*
* @dataProvider cardTransactionAcceptsExemptionTypeDP
*/
Expand Down Expand Up @@ -729,7 +730,9 @@ public function cardTransactionAcceptsExemptionTypeDP()
{
return [
'lvp' => [ExemptionType::LOW_VALUE_PAYMENT],
'tra' => [ExemptionType::TRANSACTION_RISK_ANALYSIS]
'tra' => [ExemptionType::TRANSACTION_RISK_ANALYSIS],
'scp' => [ExemptionType::SECURE_CORPORATE_PAYMENT],
'no_exemption' => [ExemptionType::NO_EXEMPTION]
];
}
}