Failing to link paynow with django


hello guyz i am new to paynow integration so l was trying to put the code snipest on my django but its now evening executing when l click A button to pay on my website

can someone help me with how he did it


Can you send a snippet of the code( the view , the url and the template) part where you are calling the code