Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amax and Payment request not working for me? #3

Open
ronjunevaldoz opened this issue Apr 16, 2017 · 1 comment
Open

Amax and Payment request not working for me? #3

ronjunevaldoz opened this issue Apr 16, 2017 · 1 comment

Comments

@ronjunevaldoz
Copy link

ronjunevaldoz commented Apr 16, 2017

I've tried the other methods and its working properly but when I tried the payment and amax, I am not getting the desired result.

API Type

  • send sms - make calls - to be located - to query user data
  • charge P1.00 or P5.00

`use Globe\Connect\Payment;

$payment = new Payment($token);

// payment request
$payment->setEndUserId(9xxxxxxxx);
$payment->setAmount(1.00);
$payment->setDescription("Pang bili nang kendi");
$payment->setReferenceCode("xxxx1000001");
$payment->setTransactionOperationStatus("Charged");
print $payment->sendPaymentRequest();

use Globe\Connect\Amax;

$amax = new Amax($APP_ID, $APP_SECRET);
$amax->setToken($token);
$amax->setAddress('+639xxxxxxx');
$amax->setPromo('FREE10MB');
echo $amax->sendReward();`

Output

{ "error": "Failed to authenticate" }{ "error": "Something went wrong." }

@catchmeeh
Copy link

mine as well really need help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants