Payment Response (Frontend)

👍

HTTP POST / Server-to-Browser

📘

API Parameter

Payment Response Frontend Parameters

2C2P typically redirects customers to a merchant's confirmation page as part of the payment flow for 2C2P PGW integrations. As part of this process, merchants receive an encoded message which must be decoded using base64URL.

The sample code below demonstrates a correctly decoded decoded payment response.

Accept: text/html,application/xhtml+xml,application/
Content-Type: application/x-www-form-urlencoded

paymentResponse=eyJsb2NhbGUiOm51bGwsImludm9pY2VObyI6IjA4MDIyMzE1MjMyMiIsImNoYW5uZWxDb2RlIjoiQ0MiLCJyZXNwQ29kZSI6IjIwMDAiLCJyZXNwRGVzYyI6IlRyYW5zYWN0aW9uIGlzIGNvbXBsZXRlZCwgcGxlYXNlIGRvIHBheW1lbnQgaW5xdWlyeSByZXF1ZXN0IGZvciBmdWxsIHBheW1lbnQgaW5mb3JtYXRpb24uIn0%3D
{
	"invoiceNo": "280520075921",
	"channelCode": "CC",
	"respCode": "2000",
	"respDesc": "Transaction is completed, please do payment inquiry request for full payment information."
}