# Simple Payments

# Pay Now Button

# 1. Add a button to your website

First you need to add a button to your website and add "Pay Now" as the button text. Below you will find examples of the most popular E-commerce Platforms. If you cannot find yours in the list, let us know.

# WIX

Click here (opens new window) to see how to add a button to your WIX site.

# Squarespace

Click here (opens new window) to see how to add a button to your Squarespace site.

# WordPress

Click here (opens new window) to see how to add a button to your WordPress site.

# Shopify

Click here (opens new window) to see how to add a button to your Shopify site.

# 2. Copy your URL from the Control Panel

Log in to the Control Panel and go to Simple Payments/Pages. Choose the form you want to use. Click on the 3 dots and Copy Page URL.

# 3. Add the URL to the button

All you have to do is add the URL to the button. Replace your URL with the one between the quotation marks.

<a href="{https://sandbox.pepperpaygateway.com}/spp/example-page">Pay Now</a>

# Url Parameters

# Custom Fields

Comma separate the custom field ids and values you want to prefill. You can get the custom field id from the Control Panel under Manage->Custom Fields.

Colon separate the custom field id and value.

{{ url goes here }}/spp/example-page?custom_fields=field1ID:value,field2ID:value

// Example
{{ url goes here }}/spp/beef_jerky?custom_fields=cotpggp97i67muer2dd0:meat,coyqg1p97i67muer2dd1:spicy

# Products

Comma separate the product ids and quantities you want to prefill. You can get the product id from the Control Panel under Shopping->Products->Edit Product->Id(upper right hand corner).

Colon separate the product id, quantity, price

{{ url goes here }}/spp/example-page?products=product1ID:quantity:price,product2ID:quantity:price

// Example
{{ url goes here }}/spp/beef_jerky?products=cjocdq45co1epquvdn60:2:8.23,cjocdq45co1epquvdn61:1:3.50

# API

# Create a new product

Request Method: POST

URL Endpoint: /api/merchant/{merchantid}/product

    # Create a new recurring plan

    Request Method: POST

    URL Endpoint: /api/recurring/plan

      # Create a new custom field

      Request Method: POST

      URL Endpoint: /api/customfields

        # Create a new Simple Payments page

        Request Method: POST

        URL Endpoint: /api/merchant/{merchantid}/simple-payment