Integration and testing


There are two options for integrating Visa, depending on whether you want to accept multiple credit cards or Visa only.

Multiple credit cards

Customers are redirected to a MultiSafepay credit card payment page, where all credit cards are bundled together. This saves space in your checkout. Customers enter their payment details and the page detects the specific card scheme based on the first four digits.

See API reference – Credit cards.

Visa only

Customers are redirected straight to Visa.

See API reference – Visa.

Testing

View credentials and testing process

Test credentials: API key

Test a VISA order

  1. Send a redirect API request.
  2. On the payment page:
    • In the Card number field, enter 4111111111111111.
    • In the Card holder field, enter any name.
    • From the Expiry date lists, select any future date.
    • In the CVC/CVV field, enter 123.
    • Click Confirm.
  3. On the 3D payment page:
    • From the drop-down list, select Authenticated (Y).
    • Click Confirm.
      The payment is processed in the test environment as Successful, with order status Completed, and transaction status Completed.

Use the following card numbers to test different transaction statuses.

Card number Status Description
4111111111111111 Completed Transaction was completed (3D enrolled)
4012001038443335 Completed Transaction was completed (not 3D enrolled)
4917300000000008 Uncleared Transaction is uncleared. After 3 minutes, this changes to Void.
4462000000000003 Uncleared Transaction is uncleared. After 3 minutes, this changes to Completed.
4012001037461114 Declined Transaction was declined (3D authentication failed)
4012001038488884 Declined Transaction was declined (3D authentication was successful, but insufficient funds)

Note: You can see the reason a transaction was declined in your MultiSafepay test account under Notes.


Test refunding an order

To test refunding an order:

  1. Create an order using card number 4012001038443335.
  2. In your MultiSafepay test account, go to Order summary, and then click Refund order.
  3. Under Refund, enter in the:
    • Reason/Description field the reason for the refund.
    • Amount field the amount to refund.
  4. Click Continue.
  5. Under Refund confirmation, check that the description and amount are correct, and then click Confirm.
    A new order is created for the refund. The order status for the refund changes to Reserved.
  6. Under Related transactions, select the ID of the refund order.
  7. Under Order summary, click Accept.
  8. In the Add transaction comment field, add a comment, and then click Add.
  9. Under Related transactions, select the ID of the refund order.
  10. Under Order summary, click Accept.
  11. In the Add transaction comment field, add a comment, and then click Add. The order status changes to Completed.

Test an API refund

To test refunding an order via the API:

  1. Create an order using card number 4012001038443335.
  2. Send a refund API request.
    A new order is created for the refund. The order status for the refund changes to Reserved.
  3. In your MultiSafepay test account, go to Related transactions, and then select the ID of the refund order.
  4. Under Order summary, click Accept.
  5. In the Add transaction comment field, add a comment, and then click Add. The order status changes to Completed.

Note:

  • You can’t test cancelling orders.
  • In the live environment, you can’t accept refund orders. These are done automatically.

For the Visa logo, see MultiSafepay GitHub – MultiSafepay icons.

Feedback

Propose a change on GitHubexternal-link-icon or
send an email to [email protected]

Other languages

For an explanation in another language, contact your account manager.