Pay with card
This endpoint allows you to initiate a payment with the provided details.
The endpoint /v1/payment/pay/:payment_reference is a POST request that initiates a card payment. The request body should be in raw format and include the following parameters:
POST: v1/payment/pay/:payment_reference
Params
payment_reference
string
The payment reference that was generated when initializing payment
Headers
secret-key
string
Your Vesicash secret key
public-key
string
Your Vesicash public key
Request body
currency (string): The currency for the payment.
country (string): The country for the payment.
narration (string): Description or reason for the payment.
method (string): The payment method, in this case "card".
token(string): The context token generated from the payment context.
amount (number): The amount of the payment.
customer_first_name (string): The first name of the customer.
customer_last_name (string): The last name of the customer.
account_number (string): The customer's account number.
card_number(string): Card number (PAN)
card_expiry_date(sting): Card expiry in MMYY format
card_cvv(string): Card CVV code
java_enabled(Boolean): Indicates if Java is enabled in browser
language(string): Browser language
screen_height(integer): Screen height in pixels
Request
For example, you can make a post request to the endpoint above and pass in the raw json data below to create a one-off transaction.
Response
Last updated