{"id":4796,"url":"https://github.com/sorokin0andrey/react-native-apay","last_synced_at":"2025-10-07T20:08:39.556Z","repository":{"id":37771909,"uuid":"192097668","full_name":"sorokin0andrey/react-native-apay","owner":"sorokin0andrey","description":"React Native bridge for Apple Pay","archived":false,"fork":false,"pushed_at":"2023-08-22T18:21:57.000Z","size":3227,"stargazers_count":56,"open_issues_count":26,"forks_count":30,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-26T02:25:19.864Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sorokin0andrey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-06-15T16:01:43.000Z","updated_at":"2024-12-24T01:35:24.000Z","dependencies_parsed_at":"2024-04-25T05:48:01.935Z","dependency_job_id":null,"html_url":"https://github.com/sorokin0andrey/react-native-apay","commit_stats":null,"previous_names":["busfor/react-native-apay"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sorokin0andrey/react-native-apay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorokin0andrey%2Freact-native-apay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorokin0andrey%2Freact-native-apay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorokin0andrey%2Freact-native-apay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorokin0andrey%2Freact-native-apay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sorokin0andrey","download_url":"https://codeload.github.com/sorokin0andrey/react-native-apay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorokin0andrey%2Freact-native-apay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278838434,"owners_count":26054720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:17:24.458Z","updated_at":"2025-10-07T20:08:39.537Z","avatar_url":"https://github.com/sorokin0andrey.png","language":"Objective-C","funding_links":[],"categories":["Components"],"sub_categories":["Monetization"],"readme":"\n# react-native-apay\n[![react-native version](https://img.shields.io/badge/react--native-0.41-0ba7d3.svg?style=flat-square)](https://github.com/facebook/react-native/releases/tag/v0.41.0)\n![npm](https://img.shields.io/npm/dw/react-native-apay.svg?style=flat-square)\n[![npm (tag)](https://img.shields.io/npm/v/react-native-apay/latest.svg?style=flat-square)](https://github.com/busfor/react-native-apay/tree/master)\n\nAccept Payments with Apple Pay for React Native apps.\n\n\u003cdiv\u003e\n\u003cimg width=\"280px\" src=\"simulator.gif\" /\u003e\n\u003c/div\u003e\n\n---\n\n## Getting started\n\n`$ yarn add react-native-apay`\n\n## Linking \n\n### \u003e= 0.60\n\nAutolinking will just do the job.\n\n### \u003c 0.60\n\n### Mostly automatic installation\n\n`$ react-native link react-native-apay`\n\n### CocoaPods\n\nLink using [Cocoapods](https://cocoapods.org) by adding this to your `Podfile`:\n\n```ruby\npod 'RNApplePay', :path =\u003e '../node_modules/react-native-apay'\n```\n\n### Manual installation\n\n\n#### iOS\n\n1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n2. Go to `node_modules` ➜ `react-native-apay` and add `RNApplePay.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libRNApplePay.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4. Run your project (`Cmd+R`)\u003c\n\n\n## Usage\n```javascript\nimport { ApplePay } from 'react-native-apay';\n\nconst requestData = {\n  merchantIdentifier: 'merchant.com.example',\n  supportedNetworks: ['mastercard', 'visa'],\n  countryCode: 'US',\n  currencyCode: 'USD',\n  paymentSummaryItems: [\n    {\n      label: 'Item label',\n      amount: '100.00',\n    },\n  ],\n}\n\n// Check if ApplePay is available\nif (ApplePay.canMakePayments) {\n  ApplePay.requestPayment(requestData)\n    .then((paymentData) =\u003e {\n      console.log(paymentData);\n      // Simulate a request to the gateway\n      setTimeout(() =\u003e {\n        // Show status to user ApplePay.SUCCESS || ApplePay.FAILURE\n        ApplePay.complete(ApplePay.SUCCESS)\n          .then(() =\u003e {\n            console.log('completed');\n            // do something\n          });\n      }, 1000);\n    });\n};\n```\n\n## Demo\nYou can run the demo by cloning the project and running:\n\n`$ yarn demo`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsorokin0andrey%2Freact-native-apay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsorokin0andrey%2Freact-native-apay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsorokin0andrey%2Freact-native-apay/lists"}