The following python code is returning error, if i print response.status and it's in Test mode. What maybe the issue
paynow = Paynow(
‘MY ID’,
'MY KEY,
‘http://google.com’,
‘http://google.com’
)
# Create new payment and pass in the reference and payer's email address
payment = paynow.create_payment('Order', 'email of the paynow account')
# Passing in the name of the item and the price of the item
payment.add('Policy', 8000)
# Save the response from paynow in a variable
response = paynow.send_mobile(payment, '0771111111', 'ecocash')
print(response.status)
if response.success:
poll_url = response.poll_url
print("Poll Url: ", poll_url)
status = paynow.check_transaction_status(poll_url)
print("Payment Status: ", status.status)