Skip to content

Meta Data not available in apis #15

@Navpreet-3299

Description

@Navpreet-3299

Description

Hi Team,
This is to inform you that we have configured our SDK and passed the meta data while configuring the SDK . However we've failed to receive the same in the webhook . Kindly address this issue so that we can make our app live at the earliest .

Code as follows :

   func setConfiguration(data : FlutterWaveConfiguration , navigation : UINavigationController){
    let metaList: [[String: String]] = [
        ["metaname": "uid", "metavalue": Utility.getUserid() ?? ""],
        ["metaname": "trigger", "metavalue": "COIN_PURCHASE"],
        ["metaname": "coinPurchasePlanId", "metavalue": data.coinplanId ?? ""],
        ["metaname":"sdk", "metavalue":"ios"]
    ]
    
    config.paymentOptionsToExclude = []
    config.currencyCode = data.currencyCode ?? "NGN" // This is the specified currency to charge in.
    config.email = data.email ?? "user@flw.com" // This is the email address of the customer
    config.isStaging = false // Toggle this for staging and live environment
    config.phoneNumber = data.phoneNumber ?? "" //Phone number
    config.transcationRef = generateTranscationRef() // This is a unique reference, unique to the particular transaction being carried out. It is generated when it is not provided by the merchant for every transaction.
    config.firstName = data.firstName ?? "" // This is the customers first name.
    config.lastName = data.lastName ?? "" //This is the customers last name.
    config.meta = metaList //This is used to include additional payment information
    config.narration = "simplifying payments for endless possibilities"
    config.publicKey = self.publickey //Public key
    config.encryptionKey = self.encryptionKey //Encryption key
    config.isPreAuth = false  // This should be set to true for preauthorize card transactions
    //Pushing to VC
    Helper.hidePI()
    let controller = FlutterwavePayViewController()
    let nav = UINavigationController(rootViewController: controller)
    controller.amount = data.amount // This is the amount to be charged.
    controller.delegate = self
    controller.modalPresentationStyle = .fullScreen
    navigation.present(nav, animated: true) {
        controller.delegate = self
    }
}

Steps to Reproduce

  1. From the configuration file configure the meta data
  2. Pass it in the meta key

Expected behaviour

I must get the meta in webhook.

Actual behaviour

Meta is getting null.

Reproduces how often

It produces every time.

Configuration

  • API Version: v3
  • Environment: Live Mode
  • Browser: iOS SDK is being used
  • Language: Swift

Additional Information

Screenshots Attached

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions