← All changes
|
app/Modules/PaymentMethods/PayPalGateway/API/PayPalPartner.php
+6
-1
1.3.26
→
1.6.5
View file →
| @@ -141,9 +141,14 @@ | ||
| 141 | 141 | * @throws \Exception |
| 142 | 142 | */ |
| 143 | 143 | public function sellerOnboarding() |
| 144 | 144 | { |
| 145 | - $return_url = admin_url('admin.php?fct_app_authenticator&method=paypal&mode=' . $this->mode); | |
| 145 | + $return_url = add_query_arg([ | |
| 146 | + 'fluent-cart' => 'paypal_connect', | |
| 147 | + 'intent' => 'return', | |
| 148 | + 'mode' => $this->mode, | |
| 149 | + '_wpnonce' => wp_create_nonce('fluent_cart_paypal_connect_return_' . $this->mode), | |
| 150 | + ], home_url()); | |
| 146 | 151 | $capabilities = []; |
| 147 | 152 | $products = [ |
| 148 | 153 | 'EXPRESS_CHECKOUT' |
| 149 | 154 | ]; |