razorpay / razorpay-ios-sample-app

:iphone: Sample app demonstrating integration of Razorpay iOS Framework
MIT License
14 stars 13 forks source link

Adding a notes checkout field in the options dictionary crashes the app #5

Closed anuj-rajput closed 7 years ago

anuj-rajput commented 7 years ago

Referring to the documentation here, when adding custom notes key in the dictionary, the app crashes. I am passing the following dictionary to the -[Razorpay open:] function

NSDictionary *options = @{
    @"amount": @"100",
    @"name": "Title of Payment",
    @"notes": @{
        @"id": @"352", 
        @"name": @"Anuj", 
        @"orderId": @"220"
    }
};
akshaybhalotia commented 7 years ago

Hi @anuj-rajput ,

I'm unable to recreate the above said scenario. Can you please help me with your logs or your code?

nitpick: you are missing a @ in the value of name

anuj-rajput commented 7 years ago

Hi @akshaybhalotia, Oh that was a typo. I figured out that I was using string pointers in the options dictionary instead of actual strings which was causing the crash.