mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Remove unneeded token confirmation attempts
This commit is contained in:
parent
87aed70199
commit
4c5f0552f9
2 changed files with 17 additions and 4 deletions
|
@ -81,11 +81,12 @@ class StartPayPalVaultingEndpoint implements EndpointInterface {
|
|||
$user_id = get_current_user_id();
|
||||
|
||||
$return_url = $data['return_url'];
|
||||
$cancel_url = add_query_arg( array( 'ppcp_vault' => 'cancel' ), $return_url );
|
||||
|
||||
$links = $this->payment_token_endpoint->start_paypal_token_creation(
|
||||
$user_id,
|
||||
$return_url,
|
||||
$return_url
|
||||
$cancel_url
|
||||
);
|
||||
|
||||
wp_send_json_success(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue