Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am not getting "razorpay_order_id" and "razorpay_signature" in the onPaymentSuccess method. #29

Open
fend-dev opened this issue Aug 26, 2020 · 3 comments

Comments

@fend-dev
Copy link

fend-dev commented Aug 26, 2020

I am using Xcode 11.5 and using swift 5. I am using following code for the getting "razorpay_order_id" and "razorpay_signature".

`extension ViewController: RazorpayPaymentCompletionProtocolWithData {

func onPaymentError(_ code: Int32, description str: String, andData response: [AnyHashable : Any]?) {
    let paymentId = response!["razorpay_payment_id"]
    let orderId = response!["razorpay_order_id"]
    let signature = response!["razorpay_signature"]
    
    print("paymentID: ", paymentId!)
    print("Signature: ", signature!)
    print("OrderID: ", orderId!)
}

func onPaymentSuccess(_ payment_id: String, andData response: [AnyHashable : Any]?) {
    let paymentId = response!["razorpay_payment_id"]
    let orderId = response!["razorpay_order_id"]
    let signature = response!["razorpay_signature"]
    
    print("paymentID: ", paymentId!)
    print("Signature: ", signature!)
    print("OrderID: ", orderId!)
}

}`

I am able to get "razorpay_payment_id" in the success method of Razorpay but i am not able to get other two key values. And I am also only able to access Razorpay payment page when i am try it without an order id in checkout page.

Please help me out if i am doing wrong something.

@Nautiyalsachin
Copy link
Contributor

Hi @fend-dev, we are working on this right now, we will be releasing these two keys in future SDK releases, I'll post you here on this issue whenever we add those changes.

@DipakChhag149
Copy link

DipakChhag149 commented Oct 14, 2020

Hello @Nautiyalsachin
Is this issue resolved? I also get the same issue in the latest version of Razorpay integration.

@Albinzr
Copy link

Albinzr commented Feb 18, 2021

any update on getting razorpay_signature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants