Closed surani444 closed 1 year ago
This is payU response function
func payUSuccessResponse(_ payUResponse: Any!, surlResponse: Any!) {
}
payUResponse parameter have:
{"id":7648256671,"mode":"DC","status":"success","unmappedstatus":"captured","key":"4n3THI","txnid":"131280","transaction_fee":"330.00","amount":"330.00","cardCategory":"domestic","discount":"0.00","addedon":"2018-11-14 20:31:32","productinfo":"bus","firstname":"Amit","email":"amit.s@squareinfosoft.com","phone":"9924944405","hash":"b1e836c795432ddf3725158377ea1185e38275eb644e0d6abf9aa2b334cacf3d56d2f7933c6f7f137202854f34aa8ebc473c01931dacf22dd7960992274e50c5","field2":"598081","field5":"131831896125324","field6":"140121831896153374","field9":"Transaction Completed Successfully","payment_source":"payu","PG_TYPE":"UBIFSSPG","bank_ref_no":"831840027349","ibibo_code":"MAST","error_code":"E000","Error_Message":"No Error","name_on_card":"Surani Amitbhai Kana","card_no":"519619XXXXXX0225","is_seamless":2,"surl":"https://www.confirmtkt.com/paymenthandler/payu/surl-v2.php","furl":"https://www.confirmtkt.com/paymenthandler/payupaymentfailure.php"}
But surlResponse is always nil
I am also facing this issue, getting surlResponse is nil. how did you solve this issue?
This is payU response function
func payUSuccessResponse(_ payUResponse: Any!, surlResponse: Any!) {
}
payUResponse parameter have:
{"id":7648256671,"mode":"DC","status":"success","unmappedstatus":"captured","key":"4n3THI","txnid":"131280","transaction_fee":"330.00","amount":"330.00","cardCategory":"domestic","discount":"0.00","addedon":"2018-11-14 20:31:32","productinfo":"bus","firstname":"Amit","email":"amit.s@squareinfosoft.com","phone":"9924944405","hash":"b1e836c795432ddf3725158377ea1185e38275eb644e0d6abf9aa2b334cacf3d56d2f7933c6f7f137202854f34aa8ebc473c01931dacf22dd7960992274e50c5","field2":"598081","field5":"131831896125324","field6":"140121831896153374","field9":"Transaction Completed Successfully","payment_source":"payu","PG_TYPE":"UBIFSSPG","bank_ref_no":"831840027349","ibibo_code":"MAST","error_code":"E000","Error_Message":"No Error","name_on_card":"Surani Amitbhai Kana","card_no":"519619XXXXXX0225","is_seamless":2,"surl":"https://www.confirmtkt.com/paymenthandler/payu/surl-v2.php","furl":"https://www.confirmtkt.com/paymenthandler/payupaymentfailure.php"}
But surlResponse is always nil