No response being sent. Only an error in test mode


#1
indent preformatted text by 4 spaces

from paynow import Paynow

import time

def action_pay():

 

        paynow = Paynow(

                ‘18611’,

                ‘###############################################’,

               ‘http://google.com’,

                 ‘http://google.com

                )

        payment = paynow.create_payment(f’Order0980809700’, ‘lenonmedzayi@gmail.com’)

        payment.add(‘Commissary Topup’, 10)

   

        payment.add(‘Payment for stuff’, 1)

        response = paynow.send_mobile(payment, ‘0777777777’, ‘ecocash’)

        print(str(response),“status”,response.status)

        if(response.success):

            poll_url = response.poll_url

            print("Poll Url: ", poll_url)

            status = paynow.check_transaction_status(poll_url)

            time.sleep(30)

            print("Payment Status: ", status.status)

       

       

zx = action_pay()

print(“xzxzxzxzxzxzx”,zx)

 

where is my code wrong


#2

Print whole response and send the error message from Paynow


#3

Please make sure you update the Paynow package

pip install paynow --upgrade