├── index.js ├── ios ├── RCTPayfort.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata │ │ │ └── hazemelsisy.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ ├── xcuserdata │ │ └── hazemelsisy.xcuserdatad │ │ │ └── xcschemes │ │ │ └── xcschememanagement.plist │ └── project.pbxproj └── RCTPayfort │ ├── RCTPayfort.h │ └── RCTPayfort.m ├── package.json ├── LICENSE ├── CODE_OF_CONDUCT.md └── README.md /index.js: -------------------------------------------------------------------------------- 1 | let { Payfort } = require('react-native').NativeModules; 2 | 3 | export default Payfort; -------------------------------------------------------------------------------- /ios/RCTPayfort.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/RCTPayfort.xcodeproj/project.xcworkspace/xcuserdata/hazemelsisy.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haelsisy/react-native-payfort/HEAD/ios/RCTPayfort.xcodeproj/project.xcworkspace/xcuserdata/hazemelsisy.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /ios/RCTPayfort.xcodeproj/xcuserdata/hazemelsisy.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | RCTPayfort.xcscheme 8 | 9 | orderHint 10 | 3 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /ios/RCTPayfort/RCTPayfort.h: -------------------------------------------------------------------------------- 1 | // 2 | // RCTPayfort.h 3 | // RCTPayfort 4 | // 5 | // Created by Hazem El-Sisy on 1/21/18. 6 | // Copyright © 2018 Hazem El-Sisy. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | 15 | @interface RCTPayfort : NSObject 16 | @property (nonatomic) PayFortController *payFort; 17 | 18 | - (void)initPayfort:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback; 19 | - (void)getModuleInfo:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback; 20 | 21 | @end 22 | 23 | 24 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-payfort", 3 | "version": "1.0.1", 4 | "description": "A react native wrapper for PayFort SDK.", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/zumaawad/react-native-payfort.git" 12 | }, 13 | "keywords": [ 14 | "reactnative", 15 | "payfort", 16 | "ecommerce", 17 | "online payment", 18 | "payment" 19 | ], 20 | "author": "Hazem El-Sisy", 21 | "license": "MIT", 22 | "bugs": { 23 | "url": "https://github.com/zumaawad/react-native-payfort/issues" 24 | }, 25 | "homepage": "https://github.com/zumaawad/react-native-payfort#readme" 26 | } 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Hazem El-Sisy 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. 6 | 7 | ## Our Standards 8 | 9 | Examples of behavior that contributes to creating a positive environment include: 10 | 11 | * Using welcoming and inclusive language 12 | * Being respectful of differing viewpoints and experiences 13 | * Gracefully accepting constructive criticism 14 | * Focusing on what is best for the community 15 | * Showing empathy towards other community members 16 | 17 | Examples of unacceptable behavior by participants include: 18 | 19 | * The use of sexualized language or imagery and unwelcome sexual attention or advances 20 | * Trolling, insulting/derogatory comments, and personal or political attacks 21 | * Public or private harassment 22 | * Publishing others' private information, such as a physical or electronic address, without explicit permission 23 | * Other conduct which could reasonably be considered inappropriate in a professional setting 24 | 25 | ## Our Responsibilities 26 | 27 | Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. 28 | 29 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. 30 | 31 | ## Scope 32 | 33 | This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. 34 | 35 | ## Enforcement 36 | 37 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at hazem@easternpencil.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. 38 | 39 | Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. 40 | 41 | ## Attribution 42 | 43 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] 44 | 45 | [homepage]: http://contributor-covenant.org 46 | [version]: http://contributor-covenant.org/version/1/4/ 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React Native PayFort 2 | 3 | A react native wrapper for PayFort SDK. 4 | 5 | 6 | # Install 7 | 8 | 1.Download and follow the installation steps in PayFort documentation 9 | 10 | > https://docs.payfort.com/docs/mobile-sdk/build/index.html#download 11 | 12 | 2.Run 13 | 14 | > npm install react-native-payfort --save 15 | 16 | > react-native link react-native-payfort 17 | 18 | # Usage 19 | 20 | let { Payfort } = require('react-native').NativeModules; 21 | ........ 22 | let options = { 23 | isLive: false, // true for production, false for sandbox 24 | access_code: '', // Access Code 25 | command: 'AUTHORIZATION', //Command (AUTHORIZATION, PURCHASE) 26 | merchant_identifier: '', //The Merchant Identifier 27 | merchant_reference: 'XYZ9239-yu8100', //The Merchant’s unique order number (XYZ9239-yu8100) 28 | merchant_extra: '', //Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report 29 | merchant_extra1: '', //Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report 30 | merchant_extra2: '', //Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report 31 | merchant_extra3: '', //Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report 32 | merchant_extra4: '', //Extra data sent by merchant. Will be received and sent back as received. Will not be displayed in any report 33 | customer_name: '', //The customer’s name 34 | customer_email: 'email@domain.com', //The customer’s email (email@domain.com) 35 | phone_number: '', //The customer’s phone number (00962797219966) 36 | payment_option:'', //Payment option (MASTERCARD,VISA,AMEX) 37 | language: 'en', // The checkout page and messages language (en, ar) 38 | currency: 'EGP', //The currency of the transaction’s amount in ISO code 3 (EGP) 39 | amount: '1000', //The transaction’s amount 40 | eci: 'ECOMMERCE', //Ecommerce indicator (ECOMMERCE) 41 | order_description: '' //A description of the order 42 | }; 43 | Payfort.initPayfort(options, (err, results) => { 44 | if (err) { 45 | console.log("error initializing Payfort: ", err); 46 | return; 47 | } 48 | // Payfort initialized... 49 | console.log(results) 50 | }); 51 | 52 | ### Response 53 | 54 | { 55 | amount: "1000", 56 | authorization_code: "******", 57 | card_number: "400555******0001", 58 | command: "AUTHORIZATION", 59 | currency: "EGP", 60 | customer_email: "email@domain.com", 61 | customer_ip: "**.**.**.**", 62 | customer_name: "", 63 | eci: "ECOMMERCE", 64 | expiry_date: "2105", 65 | fort_id: "**1904821400021901", 66 | language: "en", 67 | merchant_reference: "XYZ9239-yu8100", 68 | payment_option: "VISA", 69 | phone_number: "", 70 | response_code: "02000", 71 | response_message: "Success", 72 | sdk_token: "**8FE89271477477E053321E320AEE28", 73 | status: "02", 74 | token_name: "**8FE0E32A5D7475E053321E320A1300" 75 | } 76 | 77 | # Test Card Details 78 | 79 | You want to test a transaction but you don’t have a credit card or user credentials for our other payments options? Well we’ve got your back, here you can find card numbers for any type of test you wish to do. 80 | 81 | ### Credit Cards 82 | | CARD TYPE | NUMBER | EXPIARY DATE | CVV / CVC | 83 | |--|--|--|--| 84 | | Visa | 4005550000000001 | 05/21 | 123 | 85 | | MasterCard | 5123456789012346 | 05/21 | 123 | 86 | | AMEX | 345678901234564 | 05/21 | 1234 | 87 | 88 | ### 3-D Secure Credit Cards 89 | | CARD TYPE | NUMBER | EXPIARY DATE | CVV / CVC | 90 | |--|--|--|--| 91 | | Visa | 4557012345678902 | 05/21 | 123 | 92 | | MasterCard | 5313581000123430 | 05/21 | 123 | 93 | | AMEX | 374200000000004 | 05/21 | 1234 | 94 | 95 | ### Local Payment Methods 96 | #### 97 | 98 | | PAYMENT OPTION | NUMBER | EXPIARY DATE | CVV / CVC 99 | |--|--|--|--| 100 | | Knet | 0000000001 | 05/17 | 1234 101 | 102 | #### 103 | 104 | | PAYMENT OPTION | NUMBER | EXPIARY DATE | OTP | PIN 105 | |--|--|--|--|--| 106 | | Naps | 4215375500883243 | 06/17 | 1234 | 1234 107 | 108 | #### 109 | 110 | | PAYMENT OPTION | PAYMENT ID | PASSWORD | OTP | 111 | |--|--|--|--| 112 | | Sadad | sadadOlpTest | 1234 | 112358 | 113 | 114 | #### 115 | 116 | | PAYMENT OPTION | NUMBER | CARD TYPE | 117 | |--|--|--| 118 | | E-dirham | 4724439901004942 | Gold Card | 119 | 120 | ### Digital Wallets 121 | 122 | | PAYMENT OPTION | NUMBER | EXPIARY DATE | CVV / CVC | 123 | |--|--|--|--| 124 | | MasterPass | 4000000000000002 | 05/21 | 123 | 125 | | Visa Checkout | 4000000000000002 | 05/21 | 123 | 126 | 127 | -------------------------------------------------------------------------------- /ios/RCTPayfort/RCTPayfort.m: -------------------------------------------------------------------------------- 1 | // 2 | // RCTPayfort.m 3 | // RCTPayfort 4 | // 5 | // Created by Hazem El-Sisy on 1/21/18. 6 | // Copyright © 2018 Hazem El-Sisy. All rights reserved. 7 | // 8 | 9 | #import "RCTPayfort.h" 10 | #import 11 | #import 12 | #import 13 | #import 14 | #include 15 | 16 | @implementation RCTPayfort 17 | @synthesize bridge = _bridge; 18 | 19 | NSString *sdk_token; 20 | NSMutableData *webDataglobal; 21 | 22 | RCT_EXPORT_MODULE(); 23 | 24 | RCT_EXPORT_METHOD(initPayfort:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback) 25 | { 26 | [self initializePayfort:input callback:callback]; 27 | } 28 | 29 | - (void)initializePayfort:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback 30 | { 31 | NSNumber *isLive = [input objectForKey:@"isLive"]; 32 | NSString *access_code = [input objectForKey:@"access_code"]; 33 | NSString *merchant_identifier = [input objectForKey:@"merchant_identifier"]; 34 | NSString *language = [input objectForKey:@"language"]; 35 | 36 | PayFortController *PayFort = [[PayFortController alloc]initWithEnviroment:KPayFortEnviromentSandBox]; 37 | NSMutableString *post = [NSMutableString string]; 38 | [post appendFormat:@"TESTSHAINaccess_code=%@", access_code]; 39 | [post appendFormat:@"device_id=%@", [PayFort getUDID ]]; 40 | [post appendFormat:@"language=%@", language]; 41 | [post appendFormat:@"merchant_identifier=%@", merchant_identifier]; 42 | [post appendFormat:@"service_command=%@", @"SDK_TOKENTESTSHAIN"]; 43 | 44 | NSDictionary* tmp = @{ @"service_command": @"SDK_TOKEN", 45 | @"merchant_identifier": merchant_identifier, 46 | @"access_code": access_code, 47 | @"signature": [self sha1Encode:post], 48 | @"language": language, 49 | @"device_id": [PayFort getUDID ] }; 50 | NSError *error; 51 | NSData *postdata = [NSJSONSerialization dataWithJSONObject:tmp options:0 error:&error]; 52 | 53 | NSString *BaseDomain = [isLive isEqual: @1]? @"https://paymentservices.payfort.com/FortAPI/paymentApi" : @"https://sbpaymentservices.payfort.com/FortAPI/paymentApi"; 54 | NSString *urlString = [NSString stringWithFormat:@"%@",BaseDomain]; 55 | NSString *postLength = [NSString stringWithFormat:@"%ld",[postdata length]]; 56 | NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init]; 57 | [request setURL:[NSURL URLWithString:urlString]]; 58 | [request setHTTPMethod:@"POST"]; 59 | [request setValue:postLength forHTTPHeaderField:@"Content-Length"]; 60 | [request setValue:@"application/json" forHTTPHeaderField:@"Accept"]; 61 | [request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; 62 | [request setHTTPBody:postdata]; 63 | 64 | NSLog(@"url string %@",urlString); 65 | NSURLSessionDataTask *task = [[NSURLSession sharedSession] dataTaskWithRequest:request 66 | completionHandler:^(NSData *data, 67 | NSURLResponse *response, 68 | NSError *error) 69 | { 70 | if (!error) 71 | { 72 | NSError *error = nil; 73 | id object = [NSJSONSerialization 74 | JSONObjectWithData:data 75 | options:0 76 | error:&error]; 77 | //webDataglobal = [NSMutableData data]; 78 | NSLog(@"object %@",object); 79 | 80 | if(error) { 81 | NSLog(@"Error %@",error); 82 | return; 83 | } 84 | sdk_token = object[@"sdk_token"]; 85 | [self startTheAction:input callback:callback]; 86 | 87 | } 88 | else 89 | { 90 | NSLog(@"Error: %@", error.localizedDescription); 91 | } 92 | }]; 93 | [task resume]; 94 | } 95 | 96 | - (NSString*)sha1Encode:(NSString*)input { 97 | const char *cstr = [input cStringUsingEncoding:NSUTF8StringEncoding]; 98 | NSData *data = [NSData dataWithBytes:cstr length:input.length]; 99 | 100 | uint8_t digest[CC_SHA256_DIGEST_LENGTH]; 101 | 102 | CC_SHA256(data.bytes, (int)data.length, digest); 103 | 104 | NSMutableString* output = [NSMutableString stringWithCapacity:CC_SHA256_DIGEST_LENGTH * 2]; 105 | 106 | for(int i = 0; i < CC_SHA256_DIGEST_LENGTH; i++) 107 | [output appendFormat:@"%02x", digest[i]]; 108 | 109 | return output; 110 | } 111 | 112 | -(void) startTheAction:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback 113 | { 114 | NSString *command = [input objectForKey:@"command"]; 115 | NSString *merchant_reference = [input objectForKey:@"merchant_reference"]; 116 | NSString *merchant_extra = [input objectForKey:@"merchant_extra"]; 117 | NSString *merchant_extra1 = [input objectForKey:@"merchant_extra1"]; 118 | NSString *merchant_extra2 = [input objectForKey:@"merchant_extra2"]; 119 | NSString *merchant_extra3 = [input objectForKey:@"merchant_extra3"]; 120 | NSString *merchant_extra4 = [input objectForKey:@"merchant_extra4"]; 121 | NSString *customer_name = [input objectForKey:@"customer_name"]; 122 | NSString *customer_email = [input objectForKey:@"customer_email"]; 123 | NSString *phone_number = [input objectForKey:@"phone_number"]; 124 | NSString *payment_option = [input objectForKey:@"payment_option"]; 125 | NSString *language = [input objectForKey:@"language"]; 126 | NSString *currency = [input objectForKey:@"currency"]; 127 | NSString *amount = [input objectForKey:@"amount"]; 128 | NSString *eci = [input objectForKey:@"eci"]; 129 | NSString *order_description = [input objectForKey:@"order_description"]; 130 | 131 | PayFortController *PayFort = [[PayFortController alloc]initWithEnviroment:KPayFortEnviromentSandBox]; 132 | UIViewController *nav = (UIViewController*)[UIApplication sharedApplication].delegate.window.rootViewController; 133 | //PayFort.delegate = self; 134 | 135 | NSMutableDictionary *request = [[NSMutableDictionary alloc]init]; 136 | [request setValue:command forKey:@"command"]; 137 | [request setValue:sdk_token forKey:@"sdk_token"]; 138 | //[request setValue:@"wOUEfsZm" forKey:@"token_name"]; 139 | [request setValue:merchant_reference forKey:@"merchant_reference"]; 140 | [request setValue:merchant_extra forKey:@"merchant_extra"]; 141 | [request setValue:merchant_extra1 forKey:@"merchant_extra1"]; 142 | [request setValue:merchant_extra2 forKey:@"merchant_extra2"]; 143 | [request setValue:merchant_extra3 forKey:@"merchant_extra3"]; 144 | [request setValue:merchant_extra4 forKey:@"merchant_extra4"]; 145 | [request setValue:customer_name forKey:@"customer_name"]; 146 | [request setValue:customer_email forKey:@"customer_email"]; 147 | [request setValue:phone_number forKey:@"phone_number"]; 148 | [request setValue:payment_option forKey:@"payment_option"]; 149 | [request setValue:language forKey:@"language"]; 150 | [request setValue:currency forKey:@"currency"]; 151 | [request setValue:amount forKey:@"amount"]; 152 | [request setValue:eci forKey:@"eci"]; 153 | [request setValue:order_description forKey:@"order_description"]; 154 | 155 | //[PayFort setPayFortCustomViewNib:@"PayFortView2"]; 156 | PayFort.IsShowResponsePage = YES; 157 | [PayFort callPayFortWithRequest:request currentViewController:nav 158 | Success:^(NSDictionary *requestDic, NSDictionary *responeDic) { 159 | NSLog(@"Success"); 160 | NSLog(@"responeDic=%@",responeDic); 161 | callback(@[@"",responeDic, @true]); 162 | } 163 | Canceled:^(NSDictionary *requestDic, NSDictionary *responeDic) { 164 | NSLog(@"Canceled"); 165 | NSLog(@"responeDic=%@",responeDic); 166 | callback(@[RCTMakeError(@"Canceled", nil, nil)]); 167 | } 168 | Faild:^(NSDictionary *requestDic, NSDictionary *responeDic, NSString *message) { 169 | NSLog(@"Faild"); 170 | NSLog(@"responeDic=%@",responeDic); 171 | callback(@[RCTMakeError(@"Faild", nil, nil)]); 172 | }]; 173 | } 174 | 175 | - (void)applicationDidEnterBackground:(UIApplication *)application 176 | { 177 | __block UIBackgroundTaskIdentifier backgroundTask; 178 | backgroundTask = 179 | [application beginBackgroundTaskWithExpirationHandler: ^ { 180 | [application endBackgroundTask:backgroundTask]; 181 | backgroundTask = UIBackgroundTaskInvalid; }]; 182 | } 183 | 184 | - (void)getModuleInfo:(NSDictionary *)input callback:(RCTResponseSenderBlock)callback 185 | { 186 | NSDictionary *info = @{ 187 | @"name" : @"react-native-payfort", 188 | @"description" : @"A React Native bridge module for interacting with Payfort SDK", 189 | @"className" : @"RCTPayfort", 190 | @"author": @"Hazem El-Sisy", 191 | }; 192 | callback(@[[NSNull null], info]); 193 | } 194 | 195 | @end 196 | -------------------------------------------------------------------------------- /ios/RCTPayfort.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | D1ED9AC12013FC180063D69D /* RCTPayfort.m in Sources */ = {isa = PBXBuildFile; fileRef = D1ED9AC02013FC180063D69D /* RCTPayfort.m */; }; 11 | D1ED9AC22013FC180063D69D /* RCTPayfort.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = D1ED9ABF2013FC180063D69D /* RCTPayfort.h */; }; 12 | /* End PBXBuildFile section */ 13 | 14 | /* Begin PBXCopyFilesBuildPhase section */ 15 | D1ED9ABA2013FC180063D69D /* CopyFiles */ = { 16 | isa = PBXCopyFilesBuildPhase; 17 | buildActionMask = 2147483647; 18 | dstPath = "include/$(PRODUCT_NAME)"; 19 | dstSubfolderSpec = 16; 20 | files = ( 21 | D1ED9AC22013FC180063D69D /* RCTPayfort.h in CopyFiles */, 22 | ); 23 | runOnlyForDeploymentPostprocessing = 0; 24 | }; 25 | /* End PBXCopyFilesBuildPhase section */ 26 | 27 | /* Begin PBXFileReference section */ 28 | D1ED9ABC2013FC180063D69D /* libRCTPayfort.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRCTPayfort.a; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | D1ED9ABF2013FC180063D69D /* RCTPayfort.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTPayfort.h; sourceTree = ""; }; 30 | D1ED9AC02013FC180063D69D /* RCTPayfort.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTPayfort.m; sourceTree = ""; }; 31 | /* End PBXFileReference section */ 32 | 33 | /* Begin PBXFrameworksBuildPhase section */ 34 | D1ED9AB92013FC180063D69D /* Frameworks */ = { 35 | isa = PBXFrameworksBuildPhase; 36 | buildActionMask = 2147483647; 37 | files = ( 38 | ); 39 | runOnlyForDeploymentPostprocessing = 0; 40 | }; 41 | /* End PBXFrameworksBuildPhase section */ 42 | 43 | /* Begin PBXGroup section */ 44 | D1ED9AB32013FC180063D69D = { 45 | isa = PBXGroup; 46 | children = ( 47 | D1ED9ABE2013FC180063D69D /* RCTPayfort */, 48 | D1ED9ABD2013FC180063D69D /* Products */, 49 | ); 50 | sourceTree = ""; 51 | }; 52 | D1ED9ABD2013FC180063D69D /* Products */ = { 53 | isa = PBXGroup; 54 | children = ( 55 | D1ED9ABC2013FC180063D69D /* libRCTPayfort.a */, 56 | ); 57 | name = Products; 58 | sourceTree = ""; 59 | }; 60 | D1ED9ABE2013FC180063D69D /* RCTPayfort */ = { 61 | isa = PBXGroup; 62 | children = ( 63 | D1ED9ABF2013FC180063D69D /* RCTPayfort.h */, 64 | D1ED9AC02013FC180063D69D /* RCTPayfort.m */, 65 | ); 66 | path = RCTPayfort; 67 | sourceTree = ""; 68 | }; 69 | /* End PBXGroup section */ 70 | 71 | /* Begin PBXNativeTarget section */ 72 | D1ED9ABB2013FC180063D69D /* RCTPayfort */ = { 73 | isa = PBXNativeTarget; 74 | buildConfigurationList = D1ED9AC52013FC180063D69D /* Build configuration list for PBXNativeTarget "RCTPayfort" */; 75 | buildPhases = ( 76 | D1ED9AB82013FC180063D69D /* Sources */, 77 | D1ED9AB92013FC180063D69D /* Frameworks */, 78 | D1ED9ABA2013FC180063D69D /* CopyFiles */, 79 | ); 80 | buildRules = ( 81 | ); 82 | dependencies = ( 83 | ); 84 | name = RCTPayfort; 85 | productName = RCTPayfort; 86 | productReference = D1ED9ABC2013FC180063D69D /* libRCTPayfort.a */; 87 | productType = "com.apple.product-type.library.static"; 88 | }; 89 | /* End PBXNativeTarget section */ 90 | 91 | /* Begin PBXProject section */ 92 | D1ED9AB42013FC180063D69D /* Project object */ = { 93 | isa = PBXProject; 94 | attributes = { 95 | LastUpgradeCheck = 0920; 96 | ORGANIZATIONNAME = "Hazem El-Sisy"; 97 | TargetAttributes = { 98 | D1ED9ABB2013FC180063D69D = { 99 | CreatedOnToolsVersion = 9.2; 100 | ProvisioningStyle = Automatic; 101 | }; 102 | }; 103 | }; 104 | buildConfigurationList = D1ED9AB72013FC180063D69D /* Build configuration list for PBXProject "RCTPayfort" */; 105 | compatibilityVersion = "Xcode 8.0"; 106 | developmentRegion = en; 107 | hasScannedForEncodings = 0; 108 | knownRegions = ( 109 | en, 110 | ); 111 | mainGroup = D1ED9AB32013FC180063D69D; 112 | productRefGroup = D1ED9ABD2013FC180063D69D /* Products */; 113 | projectDirPath = ""; 114 | projectRoot = ""; 115 | targets = ( 116 | D1ED9ABB2013FC180063D69D /* RCTPayfort */, 117 | ); 118 | }; 119 | /* End PBXProject section */ 120 | 121 | /* Begin PBXSourcesBuildPhase section */ 122 | D1ED9AB82013FC180063D69D /* Sources */ = { 123 | isa = PBXSourcesBuildPhase; 124 | buildActionMask = 2147483647; 125 | files = ( 126 | D1ED9AC12013FC180063D69D /* RCTPayfort.m in Sources */, 127 | ); 128 | runOnlyForDeploymentPostprocessing = 0; 129 | }; 130 | /* End PBXSourcesBuildPhase section */ 131 | 132 | /* Begin XCBuildConfiguration section */ 133 | D1ED9AC32013FC180063D69D /* Debug */ = { 134 | isa = XCBuildConfiguration; 135 | buildSettings = { 136 | ALWAYS_SEARCH_USER_PATHS = NO; 137 | CLANG_ANALYZER_NONNULL = YES; 138 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 139 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 140 | CLANG_CXX_LIBRARY = "libc++"; 141 | CLANG_ENABLE_MODULES = YES; 142 | CLANG_ENABLE_OBJC_ARC = YES; 143 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 144 | CLANG_WARN_BOOL_CONVERSION = YES; 145 | CLANG_WARN_COMMA = YES; 146 | CLANG_WARN_CONSTANT_CONVERSION = YES; 147 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 148 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 149 | CLANG_WARN_EMPTY_BODY = YES; 150 | CLANG_WARN_ENUM_CONVERSION = YES; 151 | CLANG_WARN_INFINITE_RECURSION = YES; 152 | CLANG_WARN_INT_CONVERSION = YES; 153 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 154 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 155 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 156 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 157 | CLANG_WARN_STRICT_PROTOTYPES = YES; 158 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 159 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 160 | CLANG_WARN_UNREACHABLE_CODE = YES; 161 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 162 | CODE_SIGN_IDENTITY = "iPhone Developer"; 163 | COPY_PHASE_STRIP = NO; 164 | DEBUG_INFORMATION_FORMAT = dwarf; 165 | ENABLE_STRICT_OBJC_MSGSEND = YES; 166 | ENABLE_TESTABILITY = YES; 167 | GCC_C_LANGUAGE_STANDARD = gnu11; 168 | GCC_DYNAMIC_NO_PIC = NO; 169 | GCC_NO_COMMON_BLOCKS = YES; 170 | GCC_OPTIMIZATION_LEVEL = 0; 171 | GCC_PREPROCESSOR_DEFINITIONS = ( 172 | "DEBUG=1", 173 | "$(inherited)", 174 | ); 175 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 176 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 177 | GCC_WARN_UNDECLARED_SELECTOR = YES; 178 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 179 | GCC_WARN_UNUSED_FUNCTION = YES; 180 | GCC_WARN_UNUSED_VARIABLE = YES; 181 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 182 | MTL_ENABLE_DEBUG_INFO = YES; 183 | ONLY_ACTIVE_ARCH = YES; 184 | SDKROOT = iphoneos; 185 | }; 186 | name = Debug; 187 | }; 188 | D1ED9AC42013FC180063D69D /* Release */ = { 189 | isa = XCBuildConfiguration; 190 | buildSettings = { 191 | ALWAYS_SEARCH_USER_PATHS = NO; 192 | CLANG_ANALYZER_NONNULL = YES; 193 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 194 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 195 | CLANG_CXX_LIBRARY = "libc++"; 196 | CLANG_ENABLE_MODULES = YES; 197 | CLANG_ENABLE_OBJC_ARC = YES; 198 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 199 | CLANG_WARN_BOOL_CONVERSION = YES; 200 | CLANG_WARN_COMMA = YES; 201 | CLANG_WARN_CONSTANT_CONVERSION = YES; 202 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 203 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 204 | CLANG_WARN_EMPTY_BODY = YES; 205 | CLANG_WARN_ENUM_CONVERSION = YES; 206 | CLANG_WARN_INFINITE_RECURSION = YES; 207 | CLANG_WARN_INT_CONVERSION = YES; 208 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 209 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 210 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 211 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 212 | CLANG_WARN_STRICT_PROTOTYPES = YES; 213 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 214 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 215 | CLANG_WARN_UNREACHABLE_CODE = YES; 216 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 217 | CODE_SIGN_IDENTITY = "iPhone Developer"; 218 | COPY_PHASE_STRIP = NO; 219 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 220 | ENABLE_NS_ASSERTIONS = NO; 221 | ENABLE_STRICT_OBJC_MSGSEND = YES; 222 | GCC_C_LANGUAGE_STANDARD = gnu11; 223 | GCC_NO_COMMON_BLOCKS = YES; 224 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 225 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 226 | GCC_WARN_UNDECLARED_SELECTOR = YES; 227 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 228 | GCC_WARN_UNUSED_FUNCTION = YES; 229 | GCC_WARN_UNUSED_VARIABLE = YES; 230 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 231 | MTL_ENABLE_DEBUG_INFO = NO; 232 | SDKROOT = iphoneos; 233 | VALIDATE_PRODUCT = YES; 234 | }; 235 | name = Release; 236 | }; 237 | D1ED9AC62013FC180063D69D /* Debug */ = { 238 | isa = XCBuildConfiguration; 239 | buildSettings = { 240 | CODE_SIGN_STYLE = Automatic; 241 | DEVELOPMENT_TEAM = H49299V75Z; 242 | FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)/../../../ios/\n"; 243 | HEADER_SEARCH_PATHS = ( 244 | "$(SRCROOT)/../../React/**", 245 | "$(SRCROOT)/../../react-native/React/**", 246 | "$(PROJECT_DIR)/../../../ios/PayFortSDK/Headers", 247 | ); 248 | OTHER_LDFLAGS = "-ObjC"; 249 | PRODUCT_NAME = "$(TARGET_NAME)"; 250 | SKIP_INSTALL = YES; 251 | TARGETED_DEVICE_FAMILY = "1,2"; 252 | }; 253 | name = Debug; 254 | }; 255 | D1ED9AC72013FC180063D69D /* Release */ = { 256 | isa = XCBuildConfiguration; 257 | buildSettings = { 258 | CODE_SIGN_STYLE = Automatic; 259 | DEVELOPMENT_TEAM = H49299V75Z; 260 | FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)/../../../ios/\n"; 261 | HEADER_SEARCH_PATHS = ( 262 | "$(SRCROOT)/../../React/**", 263 | "$(SRCROOT)/../../react-native/React/**", 264 | "$(PROJECT_DIR)/../../../ios/PayFortSDK/Headers", 265 | ); 266 | ONLY_ACTIVE_ARCH = NO; 267 | OTHER_LDFLAGS = "-ObjC"; 268 | PRODUCT_NAME = "$(TARGET_NAME)"; 269 | SKIP_INSTALL = YES; 270 | TARGETED_DEVICE_FAMILY = "1,2"; 271 | }; 272 | name = Release; 273 | }; 274 | /* End XCBuildConfiguration section */ 275 | 276 | /* Begin XCConfigurationList section */ 277 | D1ED9AB72013FC180063D69D /* Build configuration list for PBXProject "RCTPayfort" */ = { 278 | isa = XCConfigurationList; 279 | buildConfigurations = ( 280 | D1ED9AC32013FC180063D69D /* Debug */, 281 | D1ED9AC42013FC180063D69D /* Release */, 282 | ); 283 | defaultConfigurationIsVisible = 0; 284 | defaultConfigurationName = Release; 285 | }; 286 | D1ED9AC52013FC180063D69D /* Build configuration list for PBXNativeTarget "RCTPayfort" */ = { 287 | isa = XCConfigurationList; 288 | buildConfigurations = ( 289 | D1ED9AC62013FC180063D69D /* Debug */, 290 | D1ED9AC72013FC180063D69D /* Release */, 291 | ); 292 | defaultConfigurationIsVisible = 0; 293 | defaultConfigurationName = Release; 294 | }; 295 | /* End XCConfigurationList section */ 296 | }; 297 | rootObject = D1ED9AB42013FC180063D69D /* Project object */; 298 | } 299 | --------------------------------------------------------------------------------