Using BoltPay Embed

Find out how to add BoltPay Embed to your website

Base URLs

BoltPay Embed Example

1
2
3
4
5
6
7
8
9
10
11
12
<a class="boltpay_inline_button"
data-bp_public_key="XXXXX"
data-txref="bp-checkout-00"
data-amount="1000"
data-customer_email="example@domain.com",
data-customer_phone="+15551234567",
data-customer_firstname="Joe",
data-customer_lastname="Bloggs",
data-currency="USD"
data-pay_button_text="Pay Now"></a>
<script type="text/javascript" src="{{base_url}}/bp-inline.js"></script>

After the end user has entered their card details, their card would get validated and a reponse object would be returned.

Parameter Reference

Parameter NameRequiredDescription
data-bp_public_keyYesYour public key as visible on your dashboard
data-txrefYesA unique transaction reference
amountYesAmount to charge in cents e.g. to charge 10 USD, enter 1000
data-customer_emailYesCustomer email address
data-customer_phoneYesCustomer phone number with "+" and country code
data-customer_firstnameYesCustomer first name
data-customer_lastnameYesCustomer last name
data-currencyYesCurrency to charge
data-custom_titleNo. Recommended.Text to be displayed as the title of the payment modal.
data-custom_descriptionNo. Recommended.A custom description to be displayed on the popup modal
data-custom_logoNoAn image URL, usually a logo so customers know who they are paying.
data-billing_address_lineoneNo. Recommended for better fraud screening checks.Billing address line one
data-billing_address_linetwoNoBilling address line two, if any
data-billing_cityNo. Recommended for better fraud screening checks.Billing city
xxxxxxxxx
data-billing_stateNo. Recommended for better fraud screening checks.Billing state, province or county
data-billing_zipNo. Recommended for better fraud screening checks.Billing ZIP or Post code
data-pay_button_textNo.Text to be displayed on the BoltPay pay button
data-cycleNo.For recurrent payments. Accepted values are daily, weekly, monthly, quarterly, and yearly. This can and should be used for recurrent billing and / or subscriptions.

Content

  • Getting started
  • Base URLs
  • BoltPay Embed Example
  • Parameter Reference
  • Still questions?