Merge pull request #1 from rbkmoney/ft/rbkmoney-integration

This commit is contained in:
Ildar Galeev 2018-06-07 14:33:25 +03:00 committed by GitHub
commit 1ad0b7fb70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -48,8 +48,6 @@ public class Constants {
// The allowed networks to be requested from the API. If the user has cards from networks not
// specified here in their account, these will not be offered for them to choose in the popup.
public static final List<Integer> SUPPORTED_NETWORKS = Arrays.asList(
WalletConstants.CARD_NETWORK_AMEX,
WalletConstants.CARD_NETWORK_DISCOVER,
WalletConstants.CARD_NETWORK_VISA,
WalletConstants.CARD_NETWORK_MASTERCARD
);
@ -66,7 +64,7 @@ public class Constants {
);
// Required by the API, but not visible to the user.
public static final String CURRENCY_CODE = "USD";
public static final String CURRENCY_CODE = "RUB";
// Supported countries for shipping (use ISO 3166-1 alpha-2 country codes).
// Relevant only when requesting a shipping address.
@ -77,7 +75,7 @@ public class Constants {
// The name of your payment processor / gateway. Please refer to their documentation for
// more information.
public static final String GATEWAY_TOKENIZATION_NAME = "example";
public static final String GATEWAY_TOKENIZATION_NAME = "rbkmoney";
// Custom parameters required by the processor / gateway.
// In many cases, your processor / gateway will only require a gatewayMerchantId.

View File

@ -106,7 +106,7 @@ public class PaymentsUtil {
PaymentDataRequest.newBuilder()
.setPhoneNumberRequired(false)
.setEmailRequired(true)
.setShippingAddressRequired(true)
.setShippingAddressRequired(false)
// Omitting ShippingAddressRequirements all together means all countries are
// supported.