Skip to content

Commit

Permalink
[CC-1144] Add exemption types: (#196)
Browse files Browse the repository at this point in the history
- scp (Secure Corporate Payment)
- no_exemption
- enable logging config for test workflow.
  • Loading branch information
Ryouzanpaku authored Sep 9, 2024
1 parent 40adefe commit 6f6b22d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
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]
];
}
}

0 comments on commit 6f6b22d

Please sign in to comment.