-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from alldigitalrewards/DS-5017-v3
DS-5017 CreateOrderCode using this to generate a URL for the participant
- Loading branch information
Showing
9 changed files
with
117 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
use AllDigitalRewards\NeoCurrency\Client; | ||
use AllDigitalRewards\NeoCurrency\Order\OrderCodeRequest; | ||
use AllDigitalRewards\NeoCurrency\Order\OrderCodeResponse; | ||
|
||
require __DIR__ . '/../vendor/autoload.php'; | ||
|
||
$request = new OrderCodeRequest( | ||
'aclientid', | ||
'someaccesstoken', | ||
1, // use the USD campaign, whatever yours is note prod and sandbox will be different | ||
100, // this is the Product (Brand) id you want to purchase | ||
"1.00", | ||
); | ||
|
||
$client = new Client(); | ||
/** @var OrderCodeResponse $order */ | ||
$order = $client->request($request); | ||
print_r($order->getOrder()->getOrderId()); | ||
print_r($order->getCodeUrl()); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.