GithubHelp home page GithubHelp logo

jaycee0610 / e-wallet-gateway-client Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 21 KB

This code is intended solely for client use and only functions on the Rootscratch server. If you do not have access to a Rootscratch server, this code will not be useful. To inquire about server access, please contact me at [email protected]. This code facilitates the creation and reading of e-wallet transactions.

PHP 100.00%
ewallet gcash grabpay paymaya php shopeepay rootscratch

e-wallet-gateway-client's Introduction

Logo

E-Wallet Payment Gateway (Client)

This code is intended solely for client use and only functions on the Rootscratch server. If you do not have access to a Rootscratch server, this code will not be useful. To inquire about server access, please contact me at [email protected]. This code facilitates the creation and reading of e-wallet transactions. Additionally, this gateway is supported by Xendit PH.

https://rootscratch.com/

๐Ÿงฌ Installation

git clone https://github.com/jaycee0610/E-Wallet-Gateway-client.git
cd E-Wallet-Gateway-client

๐Ÿค– Features

  • Create Transactions
  • Get Transaction Details
  • Webhook

๐Ÿ’ณ Here is the List of Available E-Wallet Merchants

Merchant Channel Code
GCash PH_GCASH
PayMaya PH_PAYMAYA
ShopeePay PH_SHOPEEPAY
GrabPay PH_GRABPAY

๐Ÿ“ข Transaction Limits

Min. Amount Max. Amount
1 PHP based on eWallet holding limit

๐Ÿ”” Transaction Status

Status Type Details
SUCCEEDED Payment transaction for specified id is successfully
PENDING Payment transaction for specified id is awaiting payment attempt by end user
FAILED Payment transaction for specified id has failed, check failure codes for reasons
VOIDED Payment transaction for specified id has been voided
REFUNDED Payment transaction for specified id has been either partially or fully refunded

๐Ÿ“Œ Create Transactions

Sample Request to send. /createCharges

{
    "api_key": "api_key",
    "reference_id": "order-id-123",
    "currency": "PHP",
    "amount": 25000,
    "channel_code": "PH_GCASH",
    "channel_properties": {
        "success_redirect_url": "https://yourwebsite.me/payment",
        "failure_redirect_url": "https://yourwebsite.me/failed",
        "cancel_redirect_url": "https://yourwebsite.me/cancelled",
        "pending_redirect_url": "https://yourwebsite.me/pending"
    }
}

Sample Response

Caution

Please save the 'ID' or include it in your database for future reference regarding your transaction.

{
    "reference_id": "order-id-123",
    "status": "PENDING",
    "charge_amount": 25000,
    "currency": "PHP",
    "method": "PH_GCASH",
    "payment_url": "URL",
    "created_date": "2024-04-25T06:28:33.296238Z",
    "id": "c0f9350ceb435bd92d5228a748b1ab6a"
}

๐Ÿ“Œ Get Transaction Details

Sample Request to send. /getStatus

{
    "api_key": "your_api_key",
    "id": "363nn3978s0034bbv22909"
}

Sample Response

{
    "id": "363nn3978s0034bbv22909",
    "transaction_type": "live",
    "reference_id": "order-id-123",
    "transaction_amount": "25000.00",
    "payment_url": "https://payments.gcash.com/gcash-cashier-web/1.2.1/..",
    "method": "PH_GCASH",
    "status": "PENDING",
    "created_date": "2024-04-25 07:38:56"
}

๐Ÿ“Œ Webhook Payload to Receive

/getResponse

{
    "id": "363nn3978s0034bbv22909",
    "transaction_type": "live",
    "reference_id": "order-id-123",
    "transaction_amount": "25000.00",
    "payment_url": "https://payments.gcash.com/gcash-cashier-web/1.2.1/..",
    "method": "PH_GCASH",
    "status": "SUCCEEDED",
    "created_date": "2024-04-25 07:38:56"
}

Authors

Support

For support, please email me at [email protected].

e-wallet-gateway-client's People

Contributors

jaycee0610 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.