indent preformatted text by 4 spaces
from paynow import Paynow
import time
def action_pay():
paynow = Paynow(
‘18611’,
‘###############################################’,
)
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