Last active
August 29, 2015 14:06
-
-
Save code-poel/1b67634f68d6c161d684 to your computer and use it in GitHub Desktop.
Create a new, active, gift card account.
This file contains hidden or 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
<?php | |
try | |
{ | |
$proxy = new SoapClient('./api/v2_soap/?wsdl'); | |
$sessionId = $proxy->login('XXXXX', 'XXXXX'); | |
$result = $proxy->giftcardAccountCreate( | |
$sessionId, | |
array( | |
'status' => 1, | |
'is_redeemable' => 1, | |
'website_id' => 1, | |
'balance' => '80', | |
'state' => 0 | |
) | |
); | |
var_dump($result); | |
} | |
catch (Exception $e) | |
{ | |
die($e->getMessage()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment