Skip to content

Commit

Permalink
Merge pull request #9 from goaround/patch-1
Browse files Browse the repository at this point in the history
Update readme.md
  • Loading branch information
kamerk22 authored Oct 16, 2021
2 parents 521a0f5 + 92ffb5a commit 2caad26
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $ composer require kamerk22/amazongiftcode

Set the following Environment Variable in `.env` file.
```bash
GIFT_CARD_ENDPOINT=https://agcod-v2-gamma.amazon.com
GIFT_CARD_ENDPOINT=agcod-v2-gamma.amazon.com
GIFT_CARD_KEY=AWS_ACCESS_KEY
GIFT_CARD_SECRET=AWS_SECRET
GIFT_CARD_PARTNER_ID=AWS_PARTNER_ID
Expand All @@ -38,6 +38,10 @@ To Create Amazon Gift Card
```php
$aws = AmazonGiftCode::make()->buyGiftCard($value);
```
Create a Amazon Gift Card with your own `$creationRequestId` (otherwise generated)
```php
$aws = AmazonGiftCode::make()->buyGiftCard($value, $creationRequestId);
```
To Cancel Amazon Gift Card
```php
$aws = AmazonGiftCode::make()->cancelGiftCard($creationRequestId, $gcId);
Expand Down

0 comments on commit 2caad26

Please sign in to comment.