mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
♻️ Remove “append-token” method
We want to build the full payload, including the token, in the `::data()` method.
This commit is contained in:
parent
d1ee75b659
commit
f014539a95
3 changed files with 27 additions and 31 deletions
|
@ -202,9 +202,7 @@ class ConnectionUrlGenerator {
|
|||
* @return array The prepared referral data.
|
||||
*/
|
||||
protected function prepare_referral_data( array $products, string $onboarding_token ) : array {
|
||||
$data = $this->referrals_data->data( $products );
|
||||
|
||||
return $this->referrals_data->append_onboarding_token( $data, $onboarding_token );
|
||||
return $this->referrals_data->data( $products, $onboarding_token );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue