mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-08 21:52:55 +08:00
Add business entity to partner referrals data for pui onboarding
This commit is contained in:
parent
a0e431e07c
commit
4b674adad2
1 changed files with 15 additions and 0 deletions
|
@ -175,6 +175,21 @@ class PayUponInvoice {
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$data['business_entity'] = array(
|
||||||
|
'business_type' => array(
|
||||||
|
'type' => 'PRIVATE_CORPORATION',
|
||||||
|
),
|
||||||
|
'addresses' => array(
|
||||||
|
array(
|
||||||
|
'address_line_1' => WC()->countries->get_base_address(),
|
||||||
|
'admin_area_1' => WC()->countries->get_base_city(),
|
||||||
|
'postal_code' => WC()->countries->get_base_postcode(),
|
||||||
|
'country_code' => WC()->countries->get_base_country(),
|
||||||
|
'type' => 'WORK',
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
if ( in_array( 'PPCP', $data['products'], true ) ) {
|
if ( in_array( 'PPCP', $data['products'], true ) ) {
|
||||||
$data['products'][] = 'PAYMENT_METHODS';
|
$data['products'][] = 'PAYMENT_METHODS';
|
||||||
} elseif ( in_array( 'EXPRESS_CHECKOUT', $data['products'], true ) ) {
|
} elseif ( in_array( 'EXPRESS_CHECKOUT', $data['products'], true ) ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue