xpeed

Country for paddle

Apr 27th, 2021 (edited)
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. /wp-smartpay-edd/includes/gateways/paddle/paddle.php
  2. https://a.cl.ly/d5u1yy4J
  3.     if (true == $verify_signature['success']) {
  4.     $payment_object = new \EDD_Payment($payment_id);
  5.     $payment_object->address = [
  6.     // 'line1' => '',
  7.     // 'line2' => '',
  8.     // 'zip' => '',
  9.     'country' => ($web_hook_data['p_country'] ?? ''),
  10.     // 'state' => ''
  11.      ];
  12. $payment_object->save();
  13.  
  14.  
  15.  
  16.  
  17. /wp-smartpay-edd/includes/gateways/paddle/recurring-paddle.php
  18. https://a.cl.ly/6qu8NNQL
  19.  
  20.     $edd_payment = new \EDD_Payment($parent_payment_id);
  21.     $edd_payment->address = [
  22.     'country' => ($web_hook_data['country'] ?? '')
  23.     ];
  24.     $edd_payment->save();
Add Comment
Please, Sign In to add comment