Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

jkbpvsc/g2apay-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

G2A-PAY API client

This client is a work still in progress.

Constructor(apiSecret, apiHash, returnUrl, cancelUrl, currency, cartType, sandbox)

  • apiSecret- Store Api Secret
  • apiHash - Store API Hash
  • returnUrl- URL to redirect the payment is successful
  • cancelUrl- URL to redirect when payment fails
  • currency - Currency (ISO 4217) ECurrencyType
  • cartType - Cart product type: 'physical' or 'digital'
  • sandbox - Optional. Set this to true to connect the client to the G2A Pay test servers for testing your integration

Methods

createSubscriptionOrder(orderId, amount, items, subscription, options)
  • orderId - Order ID
  • amount - Order Payment Amount
  • items - Items array

About

Api wrapper for g2a pay

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors