Toss Pay
Take and make payments in South Korea with Toss Pay.
Toss Payments Merchant ID (MID)
Toss Pay issues you a unique MID and a Key-in API Key for use with your Worldpay account. Provide both of these to Worldpay for use while boarding. If you do not have a Toss Pay MID, talk to your Worldpay Relationship Manager about obtaining one from Toss Pay.
To link your Toss Pay MID to your Worldpay account, contact your Worldpay Relationship Manager or Support team.
Overview of a payment
Toss Pay follows the Worldpay
Submit the authorisation request
The shopper places an order in your online store.
You send the authorisation request with the order and payment information to Worldpay.
You must supply the following:
- The
id
attribute of the<session>
element. - The
<birthDate>
of the shopper for personal cards or the business registration number<BRN>
for corporate cards. - The first two digits of the shopper PIN in the
<password>
element. - The
<paymentMethod>
value must beCARD-SSL
.
Authorisation request examples
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE paymentService PUBLIC "-//WorldPay//DTD WorldPay PaymentService v1//EN" "http://dtd.worldpay.com/paymentService_v1.dtd">
<paymentService version="1.4" merchantCode="YOUR_MERCHANT_CODE">
<submit>
<order orderCode="YOUR_ORDER_CODE"><!--Enter a unique order code each time-->
<description>ORDER DESCRIPTION</description><!--Enter a description useful to you-->
<amount value="10000" currencyCode="NGN" exponent="2"/>
<orderContent>
<![CDATA[PLACE HTML CONTENT HERE]]>
</orderContent>
<paymentDetails>
<CARD-SSL>
<cardNumber>4444333322221111</cardNumber>
<expiryDate>
<date month="08" year="2023"/>
</expiryDate>
<cardHolderName>A Shopper</cardHolderName>
<cvc>073</cvc>
<cardAddress>
<address>
<firstName>A</firstName>
<address1>47A</address1>
<address2>Queensbridge Road</address2>
<address3>Suburbia</address3>
<postalCode>CB94BQ</postalCode>
<city>Cambridge</city>
<countryCode>GB</countryCode>
</address>
</cardAddress>
<birthDate>
<date dayOfMonth="01" month="02" year="1990"/>
</birthDate>
<password>01</password>
</CARD-SSL>
<session shopperIPAddress="123.123.123.123" id="0215ui8ib1"/>
</paymentDetails>
<shopper>
<shopperEmailAddress>ashopper@myprovider.com</shopperEmailAddress>
<browser>
<acceptHeader>text/html</acceptHeader>
<userAgentHeader>Mozilla/5.0 ...</userAgentHeader>
</browser>
</shopper>
</order>
</submit>
</paymentService>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE paymentService PUBLIC "-//WorldPay//DTD WorldPay PaymentService v1//EN" "http://dtd.worldpay.com/paymentService_v1.dtd">
<paymentService version="1.4" merchantCode="YOUR_MERCHANT_CODE">
<submit>
<order orderCode="YOUR_ORDER_CODE"><!--Enter a unique order code each time-->
<description>ORDER DESCRIPTION</description><!--Enter a description useful to you-->
<amount value="10000" currencyCode="NGN" exponent="2"/>
<orderContent>
<![CDATA[PLACE HTML CONTENT HERE]]>
</orderContent>
<paymentDetails>
<CARD-SSL>
<cardNumber>4444333322221111</cardNumber>
<expiryDate>
<date month="08" year="2023"/>
</expiryDate>
<cardHolderName>A Shopper</cardHolderName>
<cvc>073</cvc>
<cardAddress>
<address>
<firstName>A</firstName>
<address1>47A</address1>
<address2>Queensbridge Road</address2>
<address3>Suburbia</address3>
<postalCode>CB94BQ</postalCode>
<city>Cambridge</city>
<countryCode>GB</countryCode>
</address>
</cardAddress>
<password>01</password>
<BRN>1234567890</BRN>
</CARD-SSL>
<session shopperIPAddress="123.123.123.123" id="0215ui8ib1"/>
</paymentDetails>
<shopper>
<shopperEmailAddress>ashopper@myprovider.com</shopperEmailAddress>
<browser>
<acceptHeader>text/html</acceptHeader>
<userAgentHeader>Mozilla/5.0 ...</userAgentHeader>
</browser>
</shopper>
</order>
</submit>
</paymentService>
Authorization Response
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE paymentService PUBLIC "-//WorldPay//DTD WorldPay PaymentService v1//EN"
"http://dtd.worldpay.com/paymentService_v1.dtd">
<paymentService version="1.4" merchantCode="YOUR_MERCHANT_CODE">
<reply>
<orderStatus orderCode="YOUR_ORDER_CODE">
<payment>
<paymentMethod>
KOOKMIN_CREDIT-SSL
</paymentMethod>
<amount value="300" currencyCode="KRW" exponent="0" debitCreditIndicator="credit"/>
<lastEvent>
CAPTURED
</lastEvent>
<balance accountType="IN_PROCESS_AUTHORISED">
<amount value="300" currencyCode="KRW" exponent="0" debitCreditIndicator="credit"/>
</balance>
<cardNumber>
4523********2507
</cardNumber>
</payment>
</orderStatus>
</reply>
</paymentService>
Refunds
Complete refund requests with an Order Modification or in the MAI. If required, the Worldpay Support team can make refund requests for you.
The response to a refund request is immediate and the request is processed by TossPayments. You must have
Test
Use Worldpay's secure test environment to confirm your integration.
Note: You must only use the Toss Pay
Magic values
Use these magic values to simulate a response.
Element | Value | Description |
---|---|---|
<cardholderName> | AUTHORISED | We'll have an authorised payment that will also be captured. A Refund can be made for this payment as well. |
REFUSED | We will get a refused payment. | |
ERROR | A gateway error (internal error specific for WPG). | |
ACQERROR | Simulates the case of an error on the acquirer’s side (this can occur when connecting to PCaaS service and getting an unsuccessful transaction). |