I am currently working on a online store and I wanted to add Paypal as a checkout method. I started by using Express Checkout which worked fine until I tried to add taxes. The problem with Express Checkout is that I would need to calculate the taxes amount and send it with the rest on the information. My problem is that I need to know where the customer is from so I can adjust the tax amount. I tried to use Adaptive Payments but when it comes to the description of the order it only show the receivers (Ex: OnlineShop@something.ye) so I can not add the multiple items like I do with Express Checkout since this didn't worked out I did not try to see if the tax was working with this method.
So what I would like to know is...
How can I get the address of the customer so I can show him the taxes in the order details with Express Checkout ?
If this is not possible, is there a way I can change the order details of an Adaptive Payment ?
There is suppose to be a way to get the address before doing the DoExpressCheckout and change the tax amount there by using MAXAMT in SetExpressCheckout but the customer would only see the tax amount on my website and not in the Paypal page which I think is kind of odd.
Edit 1
Now that I've added a callback it's asking me for shipping flat rate.
Here is my request string...
'&METHOD=SetExpressCheckout'.
'&AMT='.$subTotal.
'&MAXAMT='.round($subTotal*1.13, 2,PHP_ROUND_HALF_EVEN).
'&RETURNURL='.$returnUrl.
'&CANCELURL='.$cancelUrl.
'&CALLBACK='.$callbackUrl.
'&CALLBACKTIMEOUT=10'.
'&L_SHIPPINGOPTIONISDEFAULT0=true'.
'&L_SHIPPINGOPTIONNAME0=FreeShipping'.
'&l_shippingOptionLabel0=FreeShipping'.
'&L_SHIPPINGOPTIONAMOUNT0=0.00'.
'&SHIPPINGAMT=0.00'.
'&CURRENCYCODE='.$currencyCode.
$desc. //Contains every item description
'&TAXAMT=0.00'.
'&ITEMAMT='.$subTotal.
'&LOCALECODE=EN';
Edit 2
So now the SetExpressCheckout is working, but my callback request is not...
'&METHOD=Callback'.
'&L_AMT0='.
'&PAYMENT_0_REQUESTAMT='.round($subTotal*1.13, 2,PHP_ROUND_HALF_EVEN).
'&CURRENCYCODE='.$_SESSION['Currency'].
'&L_TAXAMT0='.round($subTotal*0.13, 2,PHP_ROUND_HALF_EVEN).
'&ITEMAMT='.round($subTotal*1.13, 2,PHP_ROUND_HALF_EVEN).
'&LOCALECODE=EN';
I tried Callback and CallbackRequest for the method and when I go on the page itself I always get "Method Specified is not Supported".
I don't really know what to try at this point.