Overview

Creating a transaction

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a6b0241e-375b-4b20-8941-7757b3913841/Screen_Shot_2021-06-23_at_11.35.44_AM.png

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 call for more information.

String. The default payment for your Giyapay transaction.

<aside> 💡 Payment Methods

</aside>

String. Your transaction order id.

Callback URL

Example of a success callback

https://test.giyapay.com/demo-success-page?nonce=5d09cb11faac5ba3067b4665a6929a1463bdf1e6c90e75487c737570460a482b318f782193f2061691e7e171e29580e4bcbec31854012c0d4028710c793a4c6e&order_id=&refno=8D4U-2VAL-CJ1O-RDL1&timestamp=1626418739994&amount=10000&signature=565589e47f7121b34142cfe2708145098026e484b406d9e38c600d0673464220328e53fe63b9bc5256c4bebfbedcc3a3fc45b2e4795b85a94d4d55904a5ea4d5