Skip to main content

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.

  1. Open your Swan Dashboard.
  2. Go to Developers > Event Simulator.
  3. Go to Merchant payments.
  4. Go to the tab to update the merchant profile status.
  5. 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.

  1. Open your Swan Dashboard.
  2. Go to Developers > Event Simulator.
  3. Go to Merchant payments.
  4. Go to the tab to update the merchant payment method status.
  5. 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.