As an EU based seller I need to charge tax based on customer country tax rates and rules. That means that when I create subscription I need to specify either tax rate (percentage or amount) or have the ability to override subscription price. When using Stripe one just needs to specify tax_percent
beside plan_id
when creating subscription.
So far I wasn't able to do the same using PayPal Subscriptions API and their smart buttons. Tax rate can be set when creating plan but I need to be able to set tax percentage per subscription.
Sample smart button JS code:
paypal.Buttons({ createSubscription: function(data, actions) { return actions.subscription.create({'plan_id': 'P-2UF78835G6983425GLSM44MA', // I'd like to be able to set tax rate here somehow }); }}).render('#paypal-button-container');
No luck setting up tax directly using Subscriptions API either:
curl -v -k -X POST https://api.sandbox.paypal.com/v1/billing/subscriptions \ -H "Accept: application/json" \ -H "Authorization: Bearer Access-Token" \ -H "Content-Type: application/json" \ -d '{"plan_id": "P-2UF78835G6983425GLSM44MA","application_context": {"brand_name": "example","user_action": "SUBSCRIBE_NOW","payment_method": {"payer_selected": "PAYPAL","payee_preferred": "IMMEDIATE_PAYMENT_REQUIRED" },"return_url": "https://example.com/returnUrl","cancel_url": "https://example.com/cancelUrl" } }'
Am I missing something, thinking about this incorrectly or did PayPal "forgot" to implement basic thing like tax rate and therefore make their new subscriptions API unusable for VAT MOSS scenarios?