Overview

Creating a transaction

Overview

  1. User visits your online store and makes a purchase. The user pays via Giyapay.
  2. Your website contacts Giyapay through an API call via HTTP POST to create a transaction.
  3. Once Giyapay has received the payment, Giyapay will respond with a unique token (signature) and reference number.
  4. Your website gives the user a success/failed/cancel page when the payment process is done.

<aside> ⚠️ Do not use Ajax request to POST data.

</aside>

Creating a Transaction

Description

String. A callback url when the payment successfully created.

String. A callback url when the payment got an error.

String. A callback url when the payment cancelled.

String. Your merchant id for Giyapay.

Integer. Total amount of the payment in cents. Formula on getting the integer amount:

<aside> 💡 If your price is PHP 99.50, then: amount = 99.50 x 100 amount = 9950

</aside>

String. A system of money in your country that is being used. For now, only PHP is available.

String. A unique random string.

Integer. The UNIX Timestamp of the current date and time. This is used as a security measure.

String. The description of the transaction. This will be shown to the buyer or customer.

String. See the signature create a call for more information.

String. The default payment for your Giyapay transaction.

<aside> 💡 Payment Methods

</aside>

String. Your transaction order id.

Callback URL