New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion from USD to BRL #25

Closed
tonylampada opened this Issue Aug 13, 2012 · 11 comments

Comments

Projects
None yet
2 participants
@tonylampada
Member

tonylampada commented Aug 13, 2012

When a brazilian user is making a payment, Paypal will only take the payment if the currency is BRL (that's why the profile edit page asks specifically "are you brazilian?")

The payment page converts from USD to BRL by using a fixed rate of 1USD = 2BRL.
This is obviously wrong, FS should somehow get a current rate from somewhere trustable.

Also, that screen does a bad job at telling the user about the currency. So the user might freak out for a while when he sees his $30 offer appear as a $60 (sorry about that @mvallebr !)

@tonylampada

This comment has been minimized.

Show comment
Hide comment
@tonylampada

tonylampada Oct 20, 2012

Member

Anyone knows where I can get currency exchange rates ?
/cc @mvallebr

Member

tonylampada commented Oct 20, 2012

Anyone knows where I can get currency exchange rates ?
/cc @mvallebr

@mvallebr

This comment has been minimized.

Show comment
Hide comment
@tonylampada

This comment has been minimized.

Show comment
Hide comment
@tonylampada

tonylampada Oct 21, 2012

Member

Will test it later, tks @mvallebr !

Member

tonylampada commented Oct 21, 2012

Will test it later, tks @mvallebr !

@tonylampada

This comment has been minimized.

Show comment
Hide comment
@tonylampada

tonylampada Oct 21, 2012

Member

Tested it.

baseAmountList=[{'currency':{'code':'BRL', 'amount':1.00}}]
convertToCurrencyList=[{'currencyCode':'USD'}]
r = paypal.convert_currency(baseAmountList=baseAmountList, 
    convertToCurrencyList=convertToCurrencyList)
r
{'estimatedAmountTable': {'currencyConversionList': [{'baseAmount': {'amount': '1.0',
     'code': 'USD'},
    'currencyList': {'currency': [{'amount': '2.74', 'code': 'BRL'}]}}]},
 'responseEnvelope': {'ack': 'Success',
  'build': '3988550',
  'correlationId': '37fdfa0c5b56f',
  'timestamp': '2012-10-21T11:46:29.567-07:00'}}

(Meaning 1USD = 2.74BRL)

If we invert currencies paypal will say

1BRL = 0.34USD

And 1 / 2.74 = 0.364

"Real" sources say 1USD = 2.09BRL.

I guess I can't use Paypal then? 👎

Member

tonylampada commented Oct 21, 2012

Tested it.

baseAmountList=[{'currency':{'code':'BRL', 'amount':1.00}}]
convertToCurrencyList=[{'currencyCode':'USD'}]
r = paypal.convert_currency(baseAmountList=baseAmountList, 
    convertToCurrencyList=convertToCurrencyList)
r
{'estimatedAmountTable': {'currencyConversionList': [{'baseAmount': {'amount': '1.0',
     'code': 'USD'},
    'currencyList': {'currency': [{'amount': '2.74', 'code': 'BRL'}]}}]},
 'responseEnvelope': {'ack': 'Success',
  'build': '3988550',
  'correlationId': '37fdfa0c5b56f',
  'timestamp': '2012-10-21T11:46:29.567-07:00'}}

(Meaning 1USD = 2.74BRL)

If we invert currencies paypal will say

1BRL = 0.34USD

And 1 / 2.74 = 0.364

"Real" sources say 1USD = 2.09BRL.

I guess I can't use Paypal then? 👎

@tonylampada

This comment has been minimized.

Show comment
Hide comment
@tonylampada

This comment has been minimized.

Show comment
Hide comment
@tonylampada

This comment has been minimized.

Show comment
Hide comment
@tonylampada
Member

tonylampada commented Oct 22, 2012

@tonylampada

This comment has been minimized.

Show comment
Hide comment
@tonylampada

This comment has been minimized.

Show comment
Hide comment
@tonylampada
Member

tonylampada commented Oct 22, 2012

With this, I'm calling this closed
http://blog.freedomsponsors.org/a-note-to-brazilians/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment