sorokin0andrey / react-native-apay

React Native bridge for Apple Pay
55 stars 30 forks source link

Mada network is not there in supported networks #17

Open AnilBattaram-Feker opened 3 years ago

AnilBattaram-Feker commented 3 years ago

Mada network is required for payments in middle east

sorokin0andrey commented 3 years ago

Hi! Could you test it if i support?

AnilBattaram-Feker commented 3 years ago

Yes. We will test it. At present, we are making below changes in react-native-apay module before releasing mobile app build.

(After doing npm install, in react-native-apay, we are doing the following changes to include mada network and releasing mobile build.)

(react-native-apay/ios/RNApplePay.m)

if @.**(iOS 12.0, )) {

[supportedNetworksMapping setObject:PKPaymentNetworkMaestro forKey:@ "maestro"];

[supportedNetworksMapping setObject:PKPaymentNetworkMada forKey:@"mada"];

}

[image: image.png]

(react-native-apay/index.d.ts)

Add "mada" in APayAllowedCardNetworkType (first line which is supported cards) export type APayAllowedCardNetworkType = "amex" | "mastercard"| "visa" | "privatelabel" | "chinaunionpay" | "interac" | "jcb" | "suica" | "cartebancaires" | "idcredit" | "quicpay" | "maestro" | "mada"

Regards, Anil

On Tue, May 18, 2021 at 6:06 AM Andrey Sorokin @.***> wrote:

Hi! Could you test it if i support?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/busfor/react-native-apay/issues/17#issuecomment-842735172, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQA5RMGRUYK3T423AIZ73WLTOGZCBANCNFSM43ZWC6FA .