Skip to content

Commit

Permalink
Merge pull request #11 from curefit/master
Browse files Browse the repository at this point in the history
Razorpay react-native version 0.40 and above support
  • Loading branch information
Akshay Bhalotia authored Mar 8, 2017
2 parents 8c8d7d0 + c9d0198 commit 795ef19
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions android/src/main/java/com/razorpay/rn/RazorpayModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ public void onActivityResult(Activity activity, int requestCode, int resultCode,
}

@Override
public void onNewIntent(Intent intent) {

}


public void onActivityResult(int requestCode, int resultCode, Intent data){
Checkout.handleActivityResult(getCurrentActivity(), requestCode, resultCode, data, this, this);
}
Expand Down
2 changes: 1 addition & 1 deletion ios/RazorpayCheckout.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2016 Razorpay. All rights reserved.
//

#import "RCTBridgeModule.h"
#import <React/RCTBridgeModule.h>

@interface RazorpayCheckout : NSObject <RCTBridgeModule>

Expand Down
2 changes: 1 addition & 1 deletion ios/RazorpayEventEmitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2016 Facebook. All rights reserved.
//

#import "RCTEventEmitter.h"
#import <React/RCTEventEmitter.h>

@interface RazorpayEventEmitter : RCTEventEmitter

Expand Down
4 changes: 2 additions & 2 deletions ios/RazorpayEventEmitter.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

#import "RazorpayEventEmitter.h"

#import "RCTBridge.h"
#import "RCTEventDispatcher.h"
#import <React/RCTBridge.h>
#import <React/RCTEventDispatcher.h>

NSString *const kPaymentError = @"PAYMENT_ERROR";
NSString *const kPaymentSuccess = @"PAYMENT_SUCCESS";
Expand Down

0 comments on commit 795ef19

Please sign in to comment.