Download the PHP package hayleyberryl2s/amazongiftcode without Composer
On this page you can find all versions of the php package hayleyberryl2s/amazongiftcode. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hayleyberryl2s/amazongiftcode
More information about hayleyberryl2s/amazongiftcode
Files in hayleyberryl2s/amazongiftcode
Package amazongiftcode
Short Description Laravel Package for Amazon Gift Codes.
License MIT
Homepage https://github.com/hayleyberryl2s/amazongiftcode
Informations about the package amazongiftcode
AmazonGiftCode
AmazonGiftCode is Laravel package for Amazon Gift Codes On Demand (AGCOD). Integration for Amazon Incentive API. Read more at https://developer.amazon.com/amazon-incentives-api
This package will give you a simplest APIs to Create/Cancel Amazon Gift Code On Demand.
Installation
You can install this package via Composer.
Set the following Environment Variable in .env
file.
The package will register itself automatically. Optionally publish config file of package
Usage
To Create Amazon Gift Card
Create a Amazon Gift Card with your own $creationRequestId
(otherwise generated)
To Cancel Amazon Gift Card
To Get Available Funds Balance
Available Methods
To change client configuration dynamic. If you pass only $key
or other parameter will takes value from default config.
CreateGiftCard
getStatus()
Get the status of perform request. (status
)
getId()
To get unique Amazon Gift Card id. (gcId
)
getCreationRequestId()
Original Creation Request Id. (creationRequestId
)
getClaimCode()
Amazon Gift Card Claim Code to be used. (gcClaimCode
)
getValue()
Amount of generated Gift Card. (amount
)
getCurrency()
Currency Code of generated Gift Card. (currencyCode
)
getRawJson()
Get the raw JSON response. (original response)
CancelGiftCard
getStatus()
Get the status of perform request. (status
)
getId()
To get unique Amazon Gift Card id. (gcId
)
getCreationRequestId()
Original Creation Request Id. (creationRequestId
)
getRawJson()
Get the raw JSON response. (original response)
GetAvailableFunds
getStatus()
Get the status of perform request. (status
)
getAmount()
To get available balance amount. (amount
)
getCurrency()
To get currency. (currency
)
getTimestamp()
Get request timestamp. (getTimestamp
)
getRawJson()
Get the raw JSON response. (original response)
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Kashyap Merai
- All Contributors
License
MIT. Please see the license file for more information.
All versions of amazongiftcode with dependencies
ext-json Version *
ext-curl Version *