Changeset 2996006
- Timestamp:
- 11/14/2023 06:16:25 PM (2 years ago)
- File:
-
- 1 edited
-
qisstpay/trunk/gateways/QPGateways.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
qisstpay/trunk/gateways/QPGateways.php
r2979245 r2996006 242 242 243 243 244 $query_url =base64_encode( 'products='.$products.'&price='.$price.'¤cy='.$currency.'&products_encoded=1&url='.$url.'&shipping_total='.$shipping_total.'&tax='.$tax); 244 $checkout_data = array( 245 'customer_name' => $order->get_billing_first_name() . ' ' . $order->get_billing_last_name(), 246 'customer_email' => $order->get_billing_email(), 247 'customer_phone' => $order->get_billing_phone(), 248 'billing_address' => array( 249 'first_name' => $order->get_billing_first_name(), 250 'last_name' => $order->get_billing_last_name(), 251 'address_1' => $order->get_billing_address_1(), 252 'address_2' => $order->get_billing_address_2(), 253 'city' => $order->get_billing_city(), 254 'state' => $order->get_billing_state(), 255 'postcode' => $order->get_billing_postcode(), 256 'country' => $order->get_billing_country(), 257 ), 258 'shipping_address' => array( 259 'first_name' => $order->get_shipping_first_name(), 260 'last_name' => $order->get_shipping_last_name(), 261 'address_1' => $order->get_shipping_address_1(), 262 'address_2' => $order->get_shipping_address_2(), 263 'city' => $order->get_shipping_city(), 264 'state' => $order->get_shipping_state(), 265 'postcode' => $order->get_shipping_postcode(), 266 'country' => $order->get_shipping_country(), 267 ), 268 ); 269 270 $checkout_data_json = json_encode($checkout_data); 271 272 // Include the raw JSON string in the URL 273 $user_data = 'user_data=' . $checkout_data_json; 274 275 276 $query_url =base64_encode( 'products='.$products.'&price='.$price.'¤cy='.$currency.'&products_encoded=1&url='.$url.'&shipping_total='.$shipping_total.'&tax='.$tax.'&user_data='.$user_data); 245 277 246 278 $tez_link = 'https://ms.tezcheckout.qisstpay.com/?identity-token='.$merchantToken.'&queryUrl='.$query_url;
Note: See TracChangeset
for help on using the changeset viewer.