tolu360 / react-native-paystack

React Native Wrapper for the Paystack Native Mobile SDKs
162 stars 46 forks source link

Enable metadata support for Android #14

Closed steveamaza closed 5 years ago

steveamaza commented 6 years ago

The paystack-android library has support for metadata but the react-native plugin does not recognize metadata for Android (I think it recognizes for iOS if I read the code right).

Enabling metadata support will be helpful for a lot of integrations


    RNPaystack.chargeCard({
        cardNumber: '4123450131001381', 
        expiryMonth: '10', 
        expiryYear: '17', 
        cvc: '883',
        email: 'chargeIOS@master.dev',
        amountInKobo: 150000,
        metadata: {
        custom_fields: [
          {
            value: "Payment From Android",
            display_name: "Payment From Android",
            variable_name: "payment_from_android"
          }
        ]
       }
    })
tolu360 commented 6 years ago

I would accept a good PR for it, cheers!

tolu360 commented 5 years ago

In the works!

olujedai commented 5 years ago

Any update on this?

nlabofa commented 4 years ago

+1

AregbesolaOJ commented 4 years ago

Hello @tolu360 please i'd love to know if there's any update on this yet. Thanks

Devmaleeq commented 1 year ago

This feature is really important. I was expecting the react-native package can do everything the reactJS does (including sending metadata)