Sandbox for merchant profiles and payment methods
When testing your integration, you might need to simulate certain events with the Partner Testing API.
Merchant profiles​
Simulate updating merchant profile status​
In Sandbox only, you need to update the merchant profile status to Enabled
.
- Open your Swan Dashboard.
- Go to Developers > Event Simulator.
- Go to Merchant payments.
- Go to the tab to update the merchant profile status.
- Change the merchant profile status to
Enabled
.
Merchant payment methods​
Simulate updating merchant payment method status​
In Sandbox only, you need to update the merchant payment method status to Enabled
.
- Open your Swan Dashboard.
- Go to Developers > Event Simulator.
- Go to Merchant payments.
- Go to the tab to update the merchant payment method status.
- Change the payment method status to
Enabled
.
Simulate enabling a payment method​
You can also use the Partner Testing API.
- Line 4: Enter the corresponding
merchantProfileId
. - Line 5: Choose the
methodType
you'd like to simulate activating.
mutation EnablePaymentMethod {
simulateUpdateMerchantProfile(
input: {
merchantProfileId: "$YOUR_MERCHANT_PROFILE_ID"
merchantPaymentMethod: { methodType: $METHOD_TYPE, status: Enabled }
}
) {
... on SimulateUpdateMerchantProfileSuccessPayload {
__typename
}
... on NotFoundRejection {
id
}
... on MerchantProfileWrongStatusRejection {
__typename
}
}
}
SEPA Diret Debit
For SEPA Direct Debit, you can only use the Partner Testing API to update the status of your payment methods.