php - Have item description and taxes on Paypal -
i working on online store , wanted add paypal checkout method. started using express checkout worked fine until tried add taxes. problem express checkout need calculate taxes amount , send rest on information. problem need know customer can adjust tax amount. tried use adaptive payments when comes description of order show receivers (ex: onlineshop@something.ye) can not add multiple items express checkout since didn't worked out did not try see if tax working method.
so know is...
how can address of customer can show him taxes in order details express checkout ?
if not possible, there way can change order details of adaptive payment ?
there suppose way address before doing doexpresscheckout , change tax amount there using maxamt in setexpresscheckout customer see tax amount on website , not in paypal page think kind of odd.
edit 1
now i've added callback it's asking me shipping flat rate.
here 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'. '¤cycode='.$currencycode. $desc. //contains every item description '&taxamt=0.00'. '&itemamt='.$subtotal. '&localecode=en';
edit 2
so setexpresscheckout working, callback request not...
'&method=callback'. '&l_amt0='. '&payment_0_requestamt='.round($subtotal*1.13, 2,php_round_half_even). '¤cycode='.$_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 , callbackrequest method , when go on page "method specified not supported".
i don't know try @ point.
you use callback api update correctly on paypal payment page. pass on initial amount taxes/shipping. once buyer enters in address or signs account, callback api send information calculate charges , display buyer. can find more on in developers guide starting on page 59.
Comments
Post a Comment