Skip to content

Commit 6f6b22d

Browse files
authored
[CC-1144] Add exemption types: (#196)
- scp (Secure Corporate Payment) - no_exemption - enable logging config for test workflow.
1 parent 40adefe commit 6f6b22d

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/test-group.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
APPLE_PAY_MERCHANT_ID_CERT: ${{ secrets.APPLE_PAY_MERCHANT_ID_CERT }}
2222
APPLE_PAY_MERCHANT_ID_CERT_COMBINED: ${{ secrets.APPLE_PAY_MERCHANT_ID_CERT_COMBINED }}
2323
APPLE_PAY_MERCHANT_ID_KEY: ${{ secrets.APPLE_PAY_MERCHANT_ID_KEY }}
24+
UNZER_PAPI_VERBOSE_TEST_LOGGING: ${{ vars.UNZER_PAPI_VERBOSE_TEST_LOGGING }}
2425
steps:
2526
- uses: actions/checkout@v3
2627
- name: Setup PHP

src/Constants/ExemptionType.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
*/
88
class ExemptionType
99
{
10-
public const LOW_VALUE_PAYMENT = 'lvp';
11-
public const TRANSACTION_RISK_ANALYSIS = 'tra';
10+
public const LOW_VALUE_PAYMENT = 'lvp';
11+
public const TRANSACTION_RISK_ANALYSIS = 'tra';
12+
public const SECURE_CORPORATE_PAYMENT = 'scp';
13+
public const NO_EXEMPTION = 'no_exemption';
1214
}

test/integration/PaymentTypes/CardTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ public function cardWith3dsFlagShouldSetItAlsoInTransactions(): void
260260
* Verfify card transaction can be used with exemptionType
261261
*
262262
* @test
263+
* @group CC-1144
263264
*
264265
* @dataProvider cardTransactionAcceptsExemptionTypeDP
265266
*/
@@ -729,7 +730,9 @@ public function cardTransactionAcceptsExemptionTypeDP()
729730
{
730731
return [
731732
'lvp' => [ExemptionType::LOW_VALUE_PAYMENT],
732-
'tra' => [ExemptionType::TRANSACTION_RISK_ANALYSIS]
733+
'tra' => [ExemptionType::TRANSACTION_RISK_ANALYSIS],
734+
'scp' => [ExemptionType::SECURE_CORPORATE_PAYMENT],
735+
'no_exemption' => [ExemptionType::NO_EXEMPTION]
733736
];
734737
}
735738
}

0 commit comments

Comments
 (0)