Upgrade Error

12 years 7 months ago - 12 years 7 months ago #171302 by boyjahq
Upgrade Error was created by boyjahq
I'm getting an error when I go to upgrade a plan via PayPal. Once I'm transferred to Paypal I see:

"The link you have used to enter the PayPal system contains an incorrectly formatted item amount."

This is the information POST'ed:

amount 8291.77
business info_1311201363_biz@removed-for-privacy.com
cancel_return http://removed-for-privacy/index.php?option=com_comprofiler&task=pluginclass&user=3335&plugin=cbpaidsubscriptions&cbpgacctno=1&cbppdtback=0a7b875e6f8bb0a3dfdd966d4a46dc17&cbpbasket=126&result=cancel&cbpid=cbp4e35814ba9949326186535&Itemid=504&lang=en
charset UTF-8
cmd _xclick
country US
currency_code JPY
custom 126
email removed-for-privacy
first_name Another
invoice U1222901682008084
item_name Some Plan for w3208
item_number S247-3335-17
last_name Tester
mrb 8UK64PPCMZE58
night_phone_b
no_note 1
no_shipping 0
notify_url http://removed-for-privacy/index.php?option=com_comprofiler&task=pluginclass&user=3335&plugin=cbpaidsubscriptions&cbpgacctno=1&cbppdtback=0a7b875e6f8bb0a3dfdd966d4a46dc17&cbpbasket=126&result=notify&cbpid=cbp4e35814ba9949326186535&format=raw
quantity 1
return http://removed-for-privacy/index.php?option=com_comprofiler&task=pluginclass&user=3335&plugin=cbpaidsubscriptions&cbpgacctno=1&cbppdtback=0a7b875e6f8bb0a3dfdd966d4a46dc17&cbpbasket=126&result=success&cbpid=cbp4e35814ba9949326186535&Itemid=504&lang=en
rm 2
submit.x 25
submit.y 22

Joomla is 1.6.3
CB is 1.4
CB Subs is 1.2.2
Attachments:

Please Log in to join the conversation.

12 years 7 months ago - 12 years 7 months ago #171391 by boyjahq
Replied by boyjahq on topic Re: Upgrade Error
I got one request through successfully this morning, but it's proven to be the anomaly, other upgrade requests have failed with the same message as above.

Please Log in to join the conversation.

12 years 7 months ago #172018 by beat
Replied by beat on topic Re: Upgrade Error
is JPY 8291.77 a valid amount for paypal japan ?

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

12 years 7 months ago #172333 by boyjahq
Replied by boyjahq on topic Re: Upgrade Error
Hey Beat,

Thanks for your attention in this matter.

As far as I can tell, Yen does not convert to decimals like other currencies-- it's all integers. This is what was causing the PayPal error. I changed the CB Subs settings to never format to the two decimals and this went away.

However, none of the subscriptions were ever represented as decimals. This makes me think that potentially CB Subs did a conversion to dollars, subtracted the difference in plans (to pro-rate), and then converted back to Yen. So this may still be a bug, albeit one that is easily worked around- I don't know. <shrug />

Please Log in to join the conversation.

12 years 7 months ago #172666 by beat
Replied by beat on topic Re: Upgrade Error
CBSubs doesn't convert currencies, if all plans are in the same currency (or "same as global"), and the general currency setting in global CBSubs config is the same too.

Maybe you still have/had the global CBSubs currency in default "USD" ?

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

12 years 7 months ago #174129 by boyjahq
Replied by boyjahq on topic Re: Upgrade Error
Hey Beat,

No, global settings are set to Yen- Pretty mysterious.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.190 seconds