PHPackages                             promptpay/promptpaymentsapi - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. promptpay/promptpaymentsapi

ActiveLibrary[API Development](/categories/api)

promptpay/promptpaymentsapi
===========================

1.0.0(3y ago)19MITPHPPHP &gt;=7.2 &lt;8.2

Since Aug 14Pushed 3y agoCompare

[ Source](https://github.com/promptpaymentssystem/Promptpay-PHP-SDK)[ Packagist](https://packagist.org/packages/promptpay/promptpaymentsapi)[ Docs](http://promptpayments.io/api-documentation)[ RSS](/packages/promptpay-promptpaymentsapi/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Promptpay-PHP-SDK
=================

[](#promptpay-php-sdk)

Download Via Composer

```
composer require promptpay/promptpaymentsapi
```

Prompt Pay Express Payment Gateway Documentation
================================================

[](#prompt-pay-express-payment-gateway-documentation)

API Credencials
---------------

[](#api-credencials)

To get your API Credentials Signup as a merchant  `-> Merchants` `-> New Merchant` `Type -> Express`

Payer
-----

[](#payer)

If payer wants to fund payments using Prompt Pay, set payer to Prompt Pay. (Other payment method ex: paypal, stripe, coinpayments etc not available yet).

Amount
------

[](#amount)

Specify a payment amount and the currency.

Transaction
-----------

[](#transaction)

It’s a Transaction resource where amount object has to set.

RedirectUrls
------------

[](#redirecturls)

Set the urls where buyer should redirect after transaction is completed or cancelled.

payment
-------

[](#payment)

It’s a payment resource where all Payer, Amount, RedirectUrls and Credentials of merchant (Client ID and Client Secret) have to set. After initialized into payment object, need to call create method. It will generate a redirect URL. Users have to redirect into this URL to complete the transaction.

Example importing
-----------------

[](#example-importing)

```
