integrate in 30 seconds
Challenge accepted.
API
Our Promise
Getting Started with Our API
Authenticate
Test Account Numbers
PaymentSpring Tokenizer
Integrate in 30 Seconds
Open-Source PHP API Library
Webhooks
WordPress Plugins
Gravity Forms Add-On
WooCommerce Add-On
Tokens
Create a Token
Retrieve a Token
Create a Token with JSONP
Receipts
Delete a Receipt Template
Create a Receipt Template
Update a Receipt Template
Retrieve a Receipt Template
Create a New Receipt
Customers
Update a Customer
Create a Customer
Retrieve a Customer
Delete a Customer
List Customers
Search Customers
Plans
Create a Plan
Get a Plan
Get All Plans
Delete a Plan
Subscribe a Customer
Unsubscribe a Customer
Logged Events
Retrieve All Logged Events
Retrieve All Customer Logged Events
Retrieve All Transaction Logged Events
Retrieve a Customer's Logged Events
Retrieve a Transaction's Logged Events
Charges
Charge a Card
Charge a Token
Charge a Customer
Retrieve a Charge
Refund a Charge
List Transactions
Subscriptions
Get a Subscription
Get All Subscriptions
Get All Subscriptions for a Plan
Get All Customer Subscriptions
Invoices
Create an Invoice
List All Invoices
Delete an Invoice
Mark Invoice as Paid
Resend an Invoice
Fetch an Invoice
Update an Invoice
Webhooks
Create a Rule
Delete a Rule
Fetch a Rule
Update a Rule
Create a Strategy
Delete a Strategy
Fetch a Strategy
Update a Strategy
Create a Rule Strategy Relation
Delete a Rule Strategy Relation
A fully loaded payments solution is
30 seconds away
Follow these simple steps to integrate PaymentSpring’s secure gateway into your website.
Step 1:
Sandbox Access
Sign up for a free PaymentSpring sandbox account.
Step 2:
API Keys
Grab your API keys at the bottom of this page.
Step 3:
Library
Use a simple Ruby script to make it happen. HTTParty is used to send our API request (you can use any HTTP library).
# enable http requests require 'httparty'
Step 4:
Request Build
Include your private API key as the username parameter in the basic auth header. The token parameter is generated client side and sent to your server (e.g., from a credit card payment form you build on your website).
# this is a token that paymentspring # creates from a credit card or # bank account number provided client side token = '786e785f66' # let's define some parameters parameters = { basic_auth: { username: 'test_110475af46ce01da96603e8477', # api key password: '' # leave password blank }, body: { token: token, # here's the token amount: 999 # amount in cents } }
Step 5:
Request Submission
Send your request! Our API is RESTful and accepts JSON, so it fits nicely into your code. You’ll get a JSON response back that gives you all the details you’ll need concerning your payment.
# point the request at paymentspring url = 'https://api.paymentspring.com/api/v1/charge' # send the request to make the charge puts HTTParty.send(:post, url, parameters)
Thanks for playing!
Did you integrate in 30 seconds? Let us know what you thought of this challenge. We would love to hear your feedback.