Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

Skip to main content

Sandbox: Merchant card payments

When testing your integration, you might need to simulate certain events with the Partner Testing API.

Prerequisites
  • Merchant profile status: Enabled
  • Card payment method status: Enabled

Simulate updating the statuses for your merchant profile and card payment method if needed.

Create a payment link in the main API section of the API Explorer, not the Testing API.

mutation CardPaymentLink {
createMerchantPaymentLink(
input: {
merchantProfileId: "$MERCHANT_PROFILE_ID"
amount: { value: "50", currency: "EUR" }
paymentMethodIds: "$CARD_PAYMENT_METHOD_ID"
label: "Link for card payment simulation"
}
) {
... on CreateMerchantPaymentLinkSuccessPayload {
__typename
merchantPaymentLink {
id
}
}
}
}
{
"data": {
"createMerchantPaymentLink": {
"__typename": "CreateMerchantPaymentLinkSuccessPayload",
"merchantPaymentLink": {
"id": "$YOUR_MERCHANT_PAYMENT_LINK_ID"
}
}
}
}

Simulate receiving merchant card payment​

Enter the id from the createMerchantPaymentLink success payload.

mutation SimulateCardPaymentReception {
simulateIncomingCardAuthorization(
input: {
paymentLinkId: "$PAYMENT_LINK_ID"
authorization: { status: Authorized }
threeDS: { status: Successful }
cardDetails: {
scheme: Visa
category: Commercial
type: Credit
country: "FRA"
}
}
) {
... on InternalErrorRejection {
__typename
}
}
}

Simulate booking merchant card payment​

Get the transactionId from simulating the reception of a merchant card payment from your Dashboard.

mutation SimulateCardBooking {
simulateIncomingCardBooking(
input: { transactionId: "$TRANSACTION_ID" }
) {
... on SimulateIncomingCardBookingSuccessPayload {
__typename
}
}
}

Simulate releasing merchant card payment​

mutation SimulateRelease {
simulateReleaseReservedBalance(
input: { transactionId: "$TRANSACTION_ID" }
) {
... on ForbiddenRejection {
__typename
message
}
... on TransactionNotFoundRejection {
__typename
message
transactionId
}
... on ReleaseReservedBalanceSuccessPayload {
__typename
transactionId
}
}
}