Skip to main content

Sandbox for card payments

When testing your integration, you might need to simulate certain events with the Event Simulator.

tip

Use the Event Simulator to test other events related to card payments, such as receiving incoming and outgoing card payments, reversing incoming and outgoing card payments, and more.

Simulate an authorization request​

Simulating receiving authorization for a card payment by entering testing data...

  1. Go to Dashboard > Developers > Event Simulator.
  2. Go to Cards (not shown).
  3. Go to the tab for an authorization request.
  4. Enter required information: your Swan card ID and the amount you'd like to authorize.
  5. Enter any testing data you'd like to include in the simulation, such as a merchant or terminal ID, a valid merchant category code, a location, and more.
  6. Change the transaction category, authorization type, outcome, and card type to test different situations.
  7. Click Simulate.
  8. After clicking Simulate, notice the status change to Success, meaning your authorization request was successful.

Screenshot of Swan Dashboard authorization request page in event simulator

Simulate a release​

  1. Go to Dashboard > Developers > Event Simulator.
  2. Go to Cards (not shown).
  3. Go to the tab for an release.
  4. Enter the transaction ID and choose the reason the authorization is being released.
  5. Click Simulate.
  6. After clicking Simulate, notice the status change to Success, meaning your authorization was executed successfully.

Screenshot of Swan Dashboard authorization release page in event simulator