Skip to content
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

Add advanced cash payment method #1957

Merged
merged 2 commits into from Nov 24, 2018
Merged

Add advanced cash payment method #1957

merged 2 commits into from Nov 24, 2018

Conversation

j3ko
Copy link
Contributor

@j3ko j3ko commented Nov 23, 2018

closes #1876 and closes #1785

A couple notes about this:

  1. In addition to RUB, USD, EUR, GBP as described, Advanced pay also supports UAH, KZT and BRL. These were included in the currency dropdown as well.
  2. All wallet id's follow the form X000000000000 (a letter followed by 12 numbers, confirmed with advanced pay devs) so validation was added for this.

public final class AdvancedCashAccount extends PaymentAccount {
public AdvancedCashAccount() {
super(PaymentMethod.ADVANCED_CASH);
setSingleTradeCurrency(new FiatCurrency("USD"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setSingleTradeCurrency is not correct. Should be like in OKPayAccount: tradeCurrencies.addAll(CurrencyUtil.getAllOKPayCurrencies());

@ManfredKarrer
Copy link
Member

Great thanks! A small issues is there but rest looks all good!

@j3ko
Copy link
Contributor Author

j3ko commented Nov 24, 2018

Sorry, I was looking at the wrong example payment method when doing this.

I made some changes to make this more consistent with the OK pay payment method.

Copy link
Member

@ManfredKarrer ManfredKarrer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@ManfredKarrer ManfredKarrer merged commit 880a841 into bisq-network:release-candidate-0.9.0 Nov 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants