Choians18
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
@axmedov2001 thanks for sharing your solution. it works to me.
Forum: Fixing WordPress
In reply to: How to send XML POST request in wordpress wp_remote_post@diondesigns hi sir. Thank you very much! My problem is solved. GOD bless you.
I’ve changed the tag and body in wp_remote_post.$url = "https://gateway.wepayez.com/pay/gateway"; $xml = "<xml version=\"1.0\" encoding=\"utf-8\"> <body><![CDATA[Desmark EWallet Using Gcash]]></body> <callback_url><![CDATA[https://www.desmark.com.ph]]></callback_url> <device_info><![CDATA[12345678]]></device_info> <mch_create_ip><![CDATA[127.0.0.1]]></mch_create_ip> <mch_id><![CDATA[150560000001]]></mch_id> <nonce_str><![CDATA[2209193392]]></nonce_str> <notify_url><![CDATA[https.www.desmark.com.ph]]></notify_url> <out_trade_no><![CDATA[kenttest127500000591]]></out_trade_no> <service><![CDATA[unified.checkout.prepay]]></service> <sign><![CDATA[CF4CB88A05435B7311F21DDCA901E5720A6EE6283C503906819A962758824BC5]]></sign> <sign_type><![CDATA[SHA256]]></sign_type> <total_fee><![CDATA[200]]></total_fee> </xml>"; $response_json = wp_remote_post( $url, array( 'method' => 'POST', 'timeout' => 45, 'redirection' => 5, 'httpversion' => '1.0', 'headers' => array("Content-type" => "application/xml"), 'body' => $xml, 'sslverify' => false ) );Forum: Fixing WordPress
In reply to: How to send XML POST request in wordpress wp_remote_postThanks for the reply sir. I will update you if it works. Thanks
Viewing 3 replies - 1 through 3 (of 3 total)