Create a Checkout Button

From your campaign dashboard, click "Get the Code" to generate the simple form that creates a standard Pmints social payments button. Let's take a closer look at it.

A Pmints social payments button is a standard HTML form with several required hidden fields in it.  If any of these fields are missing or invalid, the checkout process will not execute.

Required Fields:

  • command
  • campaign_id
  • order_items_count
  • item_name_x
  • return_url
  • cancel_url
  • notify_url

 

command

The value of the command field should always be 'sale_social'.

campaign_id

This is your campaign's ID number, which you can get from the campaign's dashboard.

order_items_count

This is the number of items present in the cart for this checkout process.  Typically you will only be doing one-item checkouts, but Pmints supports social payments for up to 10 items at a time.

item_name_x

You must provide a display name for each item in the cart.  If your customer has one item in their cart, then the checkout form will have only one "item_name_x" field, and its name will be "item_name_1".  If your customer has three items in their cart, then the checkout form will have three "item_name_x" fields, and their names will be "item_name_1", "item_name_2", and "item_name_3".

return_url

This is the full URL to which customers should be redirected after a successful checkout is completed.

cancel_url

This is the full URL to which customers should be redirected if they opt to cancel the checkout process.

notify_url

This is the full URL to which Pmints should send the new transaction notification.