Charge an account funding transaction with the iframe checkout on your website
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Required parameters can vary by bankThe parameters required for account funding transactions can differ depending on your acquiring bank. For help with your setup, contact [email protected].
Learn how to perform an account funding transaction with the iframe checkout.
1. Create the checkout in the payment gateway
The first step is to perform a POST request to the payment gateway to create a checkout, with the payment type, amount, currency, and required attributes.
Here is the request to create a checkout for an account funding transaction, and you can send it from this page. The same request works for Visa and Mastercard.
Try it: select an example in the request panel:
- Account funding transaction: the request for Visa and Mastercard.
- Canada, Australia, and US: adds the extra parameters for recipients in these countries.
Enter your {auth_token} as the bearer token, and replace the {channelId} and the other example values with your values. Each parameter in the panel says when it's mandatory.
The examples include testMode=EXTERNAL, which is for the test environment only, so remove it when you go live.
For more details on 3DS testing, see the Gateway 3DS testing guide.
For full details of all the parameters, see Checkout request attributes.
From the response, you will need the value of the id and integrity for the next step. When you send the request from this page, the payment form in step 2 uses them automatically.
2. Create the payment form on your web page
To create the payment form on your web page, add the following lines of JavaScript and HTML and enter the variables for your checkout and site.
- This script gets the checkout from the payment gateway. Add the
checkoutIdwith the value of theidand add the value ofintegrityfrom the response in Step 1. Replaceanonymouswith the address of your website that loads the COPYandPAY checkout.
<script
src="https://eu-test.oppwa.com/v1/paymentWidgets.js?checkoutId={checkoutId}"
integrity="{integrity}"
crossorigin="anonymous">
</script>
- This HTML displays the checkout. The
shopperResultUrlis a page on your site where the customer should be redirected after payment processing.
<form action="{shopperResultUrl}" class="paymentWidgets" data-brands="VISA MASTER"></form>For example, a checkout script could look like this.
<script src="https://eu-test.oppwa.com/v1/paymentWidgets.js?checkoutId=702B930F656317E0D29A22D195F75A59.uat01-vm-tx03"
integrity="sha384-KnYRC1jbE3C9SMGbJ5eU2Gx+AM9PCaApfqS6lk8MpPlvk9jIii4PFu297dPu4wcy"
crossorigin="https://example.com">
</script>
For example, your checkout HTML could look as follows.
<form action="https://myshop.example.com/paid" class="paymentWidgets" data-brands="VISA MASTER"></form>Try the payment form
After you create a checkout with Try It in step 1, the payment form appears here. It uses the test environment, so no money is taken. When you pay, the gateway sends you back to this page and the payment response appears under the form.
Payment details
Create the checkout with Try It. The payment form appears here.
Use any expiry date in the future and any CVV. Never enter a real card.
| Card | Number | Result |
|---|---|---|
| Visa | 4200000000000091 | Success, no 3-D Secure challenge |
| Visa | 4200000000000042 | Success after a 3-D Secure challenge |
| Mastercard | 5200000000000007 | Success, no 3-D Secure challenge |
| Mastercard | 5200000000000015 | Success after a 3-D Secure challenge |
You can use the same checkout ID multiple times to retrieve a valid payment form. If a customer does
not finish the payment and then reloads the page or uses the browser's back button, you do not need to create a new checkout. However, these actions can generate multiple transactions in the system. For example, there can be one or more failed transactions and one successful transaction from the same checkout ID.
The checkout expires in 30 minutes, and after it expires, you must send a new request to create a checkout and use the new checkoutId to create the payment form again.
Customise the payment widgetTo customise the payment widget to match the look of your own site, see this customisation guide and the advanced options guide.
You can also add extra fields to this form, for example, to obtain the customer details during checkout.
To display some sample customisations, go to demo checkouts. You can obtain the code for the demo checkouts at Demo checkouts on GitHub.
3. Get the payment status from the checkout in the gateway
When the payment has been processed, CardCorp will redirect the customer to your shopperResultUrl.
To get the payment status, make a GET request to the payment link of your checkout in the gateway, as follows.
curl -G https://eu-test.oppwa.com/v1/checkouts/{id}/payment \
-d "entityId={channelId}" \
-H "Authorization: Bearer {auth_token}"Replace the checkout {id}and the {auth_token} with your values.
A possible example of a payment response is as follows.
{
"id": "8ac7a49fa1a0e5a401a1a1663c5d1447",
"paymentType": "DB",
"paymentBrand": "VISA",
"amount": "20.00",
"currency": "EUR",
"descriptor": "4833.6650.3671",
"merchantTransactionId": "P123",
"result": {
"avsResponse": "U",
"cvvResponse": "P",
"code": "000.100.112",
"description": "Request successfully processed in 'Merchant in Connector Test Mode'"
},
"resultDetails": {
"ExtendedDescription": "Approved",
"AcquirerResponse": "00",
"SchemeResponseCode": "00"
},
"card": {
"bin": "420000",
"binCountry": "US",
"last4Digits": "0091",
"holder": "John Smith",
"expiryMonth": "12",
"expiryYear": "2034",
"issuer": {
"bank": "JPMORGAN CHASE BANK, N.A.",
"website": "HTTPS://WWW.CHASE.COM/",
"phone": "+ (1) 212-270-6000"
},
"type": "CREDIT",
"country": "US",
"maxPanLength": "16",
"binType": "PERSONAL",
"regulatedFlag": "N"
},
"customer": {
"givenName": "John",
"surname": "Smith",
"phone": "34667666666",
"email": "[email protected]"
},
"billing": {
"street1": "Grillparzerstr 18",
"city": "Munich",
"postcode": "81675",
"country": "DE"
},
"threeDSecure": {
"eci": "05",
"version": "2.2.0",
"dsTransactionId": "87c0874c-5638-4e61-bc38-e7a6363fbf2b",
"challengeMandatedIndicator": "",
"transactionStatusReason": "",
"acsTransactionId": "1255d86d-768e-4d42-b0b2-0deaf878c80a",
"cardHolderInfo": "",
"flow": "frictionless",
"authenticationStatus": "Y",
"acsReferenceNumber": "b04ea28d11294692a29f63d2f5c84bfc",
"dsReferenceNumber": "13db2d60d08c4f6b83de194ca5245e57",
"purchaseDate": "20261103123314",
"authMethod": "02"
},
"customParameters": {
"TransactionTypeIdentifier": "F07",
"AdditionalTrace": "123456789"
},
"risk": {
"score": "0"
},
"buildNumber": "0b5e57bfdc1b9f510fb8efcb911d4daa51db9bbe@2026-11-02 08:28:23 +0000",
"timestamp": "2026-11-03 12:33:15+0000",
"recipient": {
"givenName": "Jane",
"surname": "Smith",
"accountNumberType": "RTN_AND_BANK_ACCOUNT"
},
"ndc": "0E7498FC8128D6E792FBE065A7ABF4D6.uat01-vm-tx01"
}To interpret the payment response, see Transaction results.
There is a request limit for payment status calls, after which throttling will occur. You can send two (2) GET payment requests per minute for each checkout ID.
In the payment response, compare the returned values with the expected values for the following fields: ID(s), amount, currency, brand and type.
After a payment response status check is successful, you cannot use the checkout identifier again. So if you need to get the status, use the Transaction Reports endpoint with the payment id. You will also need the id to manage payments with the Backoffice API.
View the technical integration guide
The gateway Integration Guide provides a comprehensive playground with code samples in all major programming languages.
Questions? - Visit our website and chat to our payment experts to learn more about integrating our COPYandPAY iFrame checkout.