Payment Button
Implementation
The payment button is really simple in nature. For the most basic implementation all you need to do is add this piece of HTML:
Product Quantity
We also allow you to specify the quantity when adding products to the customers cart. All you need to do is add the quantity property to to product like shown in this example:
Multiple Products
You can add multiple products by incrementing the index on the products object:
Optional Fields
We have a bunch of options which you can provide to customize the checkout flow for your customer. It works by adding properties to products like in the previous examples. The properties is only applied if they are not null. None of these are required by you, they will essentially act as automatically filling out the information on their behalf. Here is a list of the current accepted properties:
Property
Default
Description
quantity
1
The amount of the product
coupon_code
null
Any coupon code your store has.
address
null
The physical address of your customer.
city
null
The city name of your customer.
zip_code
null
The cip code of the city your customer lives in.
country
null
The country code of your customer. (Note: ).
null
The email of your customer.
name
null
The name of your customer.
custom
null
Anything you want to pass to us, we will return this to you. You could use this to identify what customer purchased the subscription.
Custom Input
If you ever need to send information to us together with purchase and would like it returned if the customer completes a transaction this is a great way to do it. You could pass through a user id if you want to know who in your database made the transaction. An example could be with a base64 encoded string:
Last updated