USSD dialog not popping up


#1

I have the following PHP code and when i use the test phone numbers it goes in to pending correctly

$paynow_type = $entry_meta['payment_paynow_option-'];
$paynow = new Paynow\Payments\Paynow(
  'id',
  'key',
  'http://example.com/gateways/paynow/update', // This is the result URL
  'http://example.com/return?gateway=paynow' // This is the return URL
);

// Create new payment and pass in the reference and payer's email address
$payment = $paynow->createPayment("Entry:$entry_id",  $entry_user->data->user_email);

// Add items and their amounts to the payment
$payment->add('Course', 0.05);

// Send the payment and save the response from Paynow in a variable
$response_paynow = $paynow->sendMobile($payment, $entry_meta["mobile_money_number-"], $paynow_type);

If I understand this correctly… https://developers.paynow.co.zw/docs/initiate_mobile_transaction.html
the prompt should actually go to the handset right? Do i need to add something to my code, did i miss something? Cause basically I had the customer test with a live number and it didn’t work they said.

Also is the 0.05 ammount too little for a test ammount?


#2

Been trying a few different setups but doesn’t seem to be working at all now :frowning: No USSD prompt on the mobile device still.
Will provide other setups shortly


#3

Getting some results when i use the nodejs package. Going to implement that instead but need a single build file that injects it into the windows object. Is this possible?


#4

Hello. The prompt only comes to your cellphone when your account has been set to live. Whilst the account is in test mode you do not get any prompt on your mobile phone but rather depending on the test number you used you will get a response which you can work with