1. Web Integration - RealTime Standard Checkout

Integrate RealTime Standard Checkout with your website to start accepting online payments from your customers. RealTime supports a slew of payment methods such as netbanking, credit and debit cards. Our Standard Checkout library provides all the essential features for integrating RealTime Checkout with the client-side of your application. This is available only for web-based integrations.

2. Prerequisites.
Run the following checklist before you begin the integration:
  • Create a RealTime Account
  • Generate API Keys
4. Create order
i. Create order using following method
ii. Redirect user to payment_link for payment.
5. Accept payment using Credit Card
url = "base_url/order/Pay"
payload = "{
                 "data": {
                                "token": " eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmRlcl9pZCI6Im9yZF9iaGRsOXN3NnV5IiwiYW1vdW50IjoxNiwiZW52aXJvbm1lbnQiOiJwcm9kdWN0aW9uIn0. NHwxZ7c-7NgVgLzAR2FsQ2yRb1AgeKTvyUXZhySkFkY",
                                "order_id": "ord_bhdl9sw6uy",
                                "name": "John",
                                "card_number": "4747474747474747",
                                "expiration_date": "03/23",
                                "cvv": "123",
                                "description": "order payment",
                                "address1": " Address line 1",
                                "address2": " Address line 2",
                                "city": "New York",
                                "state": "CF",
                                "country": "USA",
                                "postalcode": "123456",
                                "type":"card_pay"
                  }
                }"
headers = {
    'x-key': " YOUR_API_KEY",
    'x-password': " YOUR_PASSWORD",
    }
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
curl -X POST
  base_url/order/Pay
  'x-key: YOUR_API_KEY'
  'x-password: YOUR_PASSWORD'
   '{
                "data": {
                                "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmRlcl9pZCI6Im9yZF96bjVwc2IwZDRvIiwiYW1vdW50IjoxNiwiZW52aXJvbm1lbnQiOiJwcm9kdWN0aW9uIn0. vB81ehIjcAh6Feg6g70LqKofWH2w560mzinVlGiMO_Q",
                                "order_id": "ord_zn5psb0d4o",
                                "name": "John",
                                "card_number": "4747474747474747",
                                "expiration_date": "03/23",
                                "cvv": "123",
                                "description": "order payment",
                                "address1": "Wardhaman Nagar",
                                "address2": "optional",
                                "city": "Nagpur",
                                "state": "MH",
                                "country": "IND",
                                "postalcode": "442304",
                                "type":"card_pay"
                }
}'
var client = new RestClient("base_url/order/Pay");
var request = new RestRequest(Method.POST);
request.AddHeader("cache-control", "no-cache");
request.AddHeader("x-password", "YOUR_PASSWORD");
request.AddHeader("x-key", "YOUR_KEY");
request.AddParameter("undefined", "{
                "data": {
                                "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmRlcl9pZCI6Im9yZF9rZXI2enFlOGlsIiwiYW1vdW50IjoxNiwiZW52aXJvbm1lbnQiOiJwcm9kdWN0aW9uIn0. hpRUJgsDktk4Ee33JxPRFuBBxG_8AdtFXa1rH2cJ8NA",
                                "order_id": "ord_ker6zqe8il",
                                "name": "John",
                                "card_number": "4747474747474747",
                                "expiration_date": "03/23",
                                "cvv": "123",
                                "description": "order payment",
                                "address1": "Address line 1",
                                "address2": "Address line 2",
                                "city": "New York",
                                "state": "CF",
                                "country": "USA",
                                "postalcode": "123456",
                                "type":"card_pay"
                }
}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
6. Accept payment using ACH
import requests
url = "base_url/order/Pay"
payload = "{
                "data": {
                                "token": " eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmRlcl9pZCI6Im9yZF9iaGRsOXN3NnV5IiwiYW1vdW50IjoxNiwiZW52aXJvbm1lbnQiOiJwcm9kdWN0aW9uIn0. NHwxZ7c-7NgVgLzAR2FsQ2yRb1AgeKTvyUXZhySkFkY",
                                "order_id": "ord_bhdl9sw6uy",
                                "name": "John",
                                "account_type": "Checking",
                                "bank_routing_number": "100000000",
                                "confirm_bank_routing_number": "100000000",
                                "account_number": "40000000000",
                                "confirm_account_number": "40000000000",
                                "type":"ach_pay"
                  }
                }"
headers = {
    'x-key': " YOUR_API_KEY",
    'x-password': " YOUR_PASSWORD",
    }
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
curl -X POST
  base_url/order/Pay
  'x-key: YOUR_API_KEY'
  'x-password: YOUR_PASSWORD'
   '{
                "data": {
                                "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmRlcl9pZCI6Im9yZF96bjVwc2IwZDRvIiwiYW1vdW50IjoxNiwiZW52aXJvbm1lbnQiOiJwcm9kdWN0aW9uIn0. vB81ehIjcAh6Feg6g70LqKofWH2w560mzinVlGiMO_Q",
                                "order_id": "ord_zn5psb0d4o",
                                "name": "John",
                                "account_type": "Checking",
                                "bank_routing_number": "100000000",
                                "confirm_bank_routing_number": "100000000",
                                "account_number": "40000000000",
                                "confirm_account_number": "40000000000",
                                "type":"ach_pay"
                }
}'
var client = new RestClient("base_url/order/Pay");
var request = new RestRequest(Method.POST);
request.AddHeader("cache-control", "no-cache");
request.AddHeader("x-password", "YOUR_PASSWORD");
request.AddHeader("x-key", "YOUR_KEY");
request.AddParameter("undefined", "{
                "data": {
                                "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmRlcl9pZCI6Im9yZF9rZXI2enFlOGlsIiwiYW1vdW50IjoxNiwiZW52aXJvbm1lbnQiOiJwcm9kdWN0aW9uIn0. hpRUJgsDktk4Ee33JxPRFuBBxG_8AdtFXa1rH2cJ8NA",
                                "order_id": "ord_ker6zqe8il",
                                "name": "John",
                                "account_type": "Checking",
                                "bank_routing_number": "100000000",
                                "confirm_bank_routing_number": "100000000",
                                "account_number": "40000000000",
                                "confirm_account_number": "40000000000",
                                "type":"ach_pay"
                }
}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);

Response & Testing
{
   "order_id": "ord_ker6zqe8il",
    "transaction_id": "pay_t2z7zk6xcs",
    "status": "SUCCESS",
    "currency": "USD",
    "amount": "100",
    "payment_method": "ACH",
    "return_url": "Your_return_url"
    "result_code": "00"
}
Credit Card ACH
Name: any
Card Number: 4747474747474747
Expiration Date : any date
CVV : any
Name: any
Bank Routing Number: 100000000
Account Number : 40000000000
For Failure use any other Card Number For Failure use any other Routing Number or Account Number
Note: Do not expose your credentials to users. Use your key and password only in the server-side script.
7. Order details.