Skip to content

CashPlus Gateway

Process a payment using the CashPlus gateway.

Note: If you intend to use the sandbox, you should use the following base URI: https://youcanpay.com/sandbox/api/

Parameters

ParameterTypeDescription
pub_keyrequiredMerchant account's public key.
token_idrequiredA tokenized payment ID.
payment_methodrequired | arrayPayment method information, typically an array containing details about the payment method.
payment_method.typerequired | stringType of payment method, should be a string representing the payment method type "card" or "cashplus"

Returns

A transaction ID for tracking purposes, and a CashPlus token to use at one of their agencies.

Request

Endpoint: https://youcanpay.com/api/cashplus/init

Method: POST

bash
$ curl --location --request POST 'https://youcanpay.com/api/cashplus/init' \
    --form 'pub_key="pub_d8116a60-ece8-4e14-b475-c8d349a5"' \
    --form 'token_id="b7928f2a-c44b-41e2-b82c-cb4654c865b2"' \
    --form 'payment_method[type]="cashplus"'

Response

The response object

json
{
  "token": {
    "id": "b7928f2a-c44b-41e2-b82c-cb4654c865b2"
  }
}