Payment Request

Create A New Invoice

POST https://shop.rexdigital.group/api/v1/payment-request

Request Body

{
    "redirect_url": "https://shop.rexdigital.group/pay-by-link/TRANSACTIONID/checkout"
}

Payment Methods

For a full list of supported payment methods please visit: Payment Methods

Line Object

The total price for Imposter Disguise would be 30.01

Billing Address

An object to automatically fill out the customer billing information. If you do this for them they will automatically skip the step. See the structure here: Billing Address

Shipping Address

An object to automatically fill out the customer's shipping information. If you do not fill this we will assume shipping is the same address as the billing address above. You can also ignore it if no shipping is required.

See the structure here: Shipping Address

Webhook URL

Webhook URL's is the only way to confirm the status of a transaction. You will receive information instantly once a change to the transaction occurs. To see how to implement it please visit Webhooks

Signing Requests

<?php 

function sign_webhook($invoiceDetails, $secret) {
    return hash_hmac('sha256', implode('', [
        $invoiceDetails['api_key'],
        $invoiceDetails['payment_method'],
        $invoiceDetails['amount'],
        $invoiceDetails['currency'],
        $invoiceDetails['transaction_id']
    ]), $secret);
}

Last updated