[TYPO3-shop] tt_products handleScript for PayPal Express Checkout
Franz Holzinger
franz at fholzinger.com
Fri Mar 14 13:31:51 CET 2008
Hello Lukas,
> i fixed the Problem.
> Line 198:
> $addr_type->setCountry($this->basket->recs['personinfo']['country']);
>
> The problem: Country needs to be 2 Digit ISO Code (PAYPAL docu), if you
> use a <input type="text" /> for country the error will be produced.
> Unfortunately the Static Country Dropdown of tt_products uses the 3
> digit iso code (cn_iso_3) so I wrote a function to convert cn_iso_3 to
> cn_iso_2.
>
> Here my question to Franz: can you easily change the Static Country
> Dropdown to use cn_iso_2?
>
>
> Lukas Taferner schrieb:
>>
>> I will try to fix this and keep you up 2 date!
This could be made configurable somehow. But I think it would be better
if the payment scripts would transfer it to the iso code they need.
Otherwise only ISO2 would be stored into the static_countries field,
which could cause troubles because each shop would then could store it
in a different way.
- Franz
More information about the TYPO3-project-tt-products
mailing list