Common Checkout Pages (CCP)
Redirect to Payment Page Example
In this example, we are still on the originating application. We've built up a shopping cart and are ready to go out to the Common Checkout (CCP) system to make a payment.
Once the customer reviews their items and submits, the application will then reach out in the background to talk to CCP. The application will tell CCP about the transaction about to be processed and CCP will return a token. Once the application has the token, the next step is to redirect the customer out to CCP with that token.
Shopping Cart Example
Go Wild Conservation Card
Valid From 2/15/2022
$3.50
|
||
Venison Processing Donation
$50.00
|
||
1-Day Fishing (Resident)
Valid From 2/28/2022 - 2/28/2022
$8.00
|
||
Inland Waters Trout Stamp
Valid From 2/15/2022 - 3/31/2022
$10.00
|
||
Subtotal:
$71.50
|
This is an excerpt of the REST request made for this example:
{ “MerchantCode”:”MerchantId”, “MerchantKey”:”MerchantKey”, “ServiceCode”:”ServiceCode”, “UniqueTransId”:”a82fd736-7567-4df2-8”, “LocalRef”:”3565a918-ba0e-45d1-b”, “SuccessUrl”:”https://nic-payments.wi.gov/ccp/receipt”, “FailureUrl”:”https://nic-payments.wi.gov/ccp/review”, “DuplicateUrl”:”https://nic-payments.wi.gov/ccp/review”, “CancelUrl”:”https://nic-payments.wi.gov/ccp/review”, “Phone”:””, “Email”:””, “CustomerAddress”:{ “Name”:”Frank Lloyd Wright”, “Address1”:”5754 WI-23”, “City”:”Spring Green”, “State”:”WI”, “Zip”:”53588”, “Country”:”US” }, “LineItems”: [ { “Sku”:”1”, “Description”:”Go Wild Conservation Card”, “UnitPrice”:3.50, “Quantity”:1 }, { “Sku”:”2”, “Description”:”Venison Processing Donation”, “UnitPrice”:50.00, “Quantity”:1 }, { “Sku”:”3”, “Description”:”1-Day Fishing (Resident)”, “UnitPrice”:8.00, “Quantity”:1 }, { “Sku”:”3”, “Description”:”Inland Waters Trout Stamp”, “UnitPrice”:10.00, “Quantity”:1 } ] }