{"id":26842366,"url":"https://github.com/awkoy/cordova-plugin-apple-spay","last_synced_at":"2025-03-30T18:19:49.008Z","repository":{"id":57207824,"uuid":"363893922","full_name":"awkoy/cordova-plugin-apple-spay","owner":"awkoy","description":"Implements Apple Pay with Stripe","archived":false,"fork":false,"pushed_at":"2022-11-22T00:45:15.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T07:16:56.807Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/awkoy.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}},"created_at":"2021-05-03T10:31:29.000Z","updated_at":"2022-11-22T00:37:22.000Z","dependencies_parsed_at":"2023-01-22T06:02:48.258Z","dependency_job_id":null,"html_url":"https://github.com/awkoy/cordova-plugin-apple-spay","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awkoy%2Fcordova-plugin-apple-spay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awkoy%2Fcordova-plugin-apple-spay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awkoy%2Fcordova-plugin-apple-spay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awkoy%2Fcordova-plugin-apple-spay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awkoy","download_url":"https://codeload.github.com/awkoy/cordova-plugin-apple-spay/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246358503,"owners_count":20764399,"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","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":"2025-03-30T18:19:48.450Z","updated_at":"2025-03-30T18:19:48.986Z","avatar_url":"https://github.com/awkoy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cordova Apple Pay and Google Pay integration\n\nThis plugin is built as unified method for obtaining payment from Apple/Google pay to Stripe\n\nPlugin supports iOS 11+, android 10+.\n\n## Installation\n\n```\ncordova plugin add cordova-plugin-apple-spay --variable STRIPE_LIVE_PUBLISHABLE_KEY=your_key --variable STRIPE_TEST_PUBLISHABLE_KEY=your_key --variable APPLE_MERCHANT_IDENTIFIER=your_merchant_id\n```\n\nFor Android, register and fill all required forms at https://pay.google.com/business/console. Add following to\nconfig.xml:\n\n```\n\u003cconfig-file parent=\"/manifest/application\" target=\"AndroidManifest.xml\"\u003e\n    \u003cmeta-data\n            android:name=\"com.google.android.gms.wallet.api.enabled\"\n            android:value=\"true\" /\u003e\n\u003c/config-file\u003e\n```\n\nFor iOS, you have to have valid developer account with merchant set up and ApplePay capability and a merchant id\nconfigured in your Xcode project. Merchant id can be obtained\nfrom https://developer.apple.com/account/resources/identifiers/list/merchant. Do configuration manually or using\nconfig.xml:\n\n```\n\u003cplatform name=\"ios\"\u003e\n\n  \u003cconfig-file target=\"*-Debug.plist\" parent=\"com.apple.developer.in-app-payments\"\u003e\n    \u003carray\u003e\n      \u003cstring\u003edeveloper merchant ID here\u003c/string\u003e\n    \u003c/array\u003e\n  \u003c/config-file\u003e\n\n  \u003cconfig-file target=\"*-Release.plist\" parent=\"com.apple.developer.in-app-payments\"\u003e\n    \u003carray\u003e\n      \u003cstring\u003eproduction merchant ID here\u003c/string\u003e\n    \u003c/array\u003e\n  \u003c/config-file\u003e\n\u003c/platform\u003e\n```\n\n## Usage\n\n`window.AppleSpayPlugin.makePaymentRequest()` create payment request\n\n```\nrequest example:\n{\n        items: [\n          {\n            label: \"UTEC USA LLC\",\n            amount: 33,\n          },\n        ],\n        amount: 33,\n        countryCode: \"UA\",\n        currencyCode: \"USD\",\n        billingAddressRequirement: \"none\",\n        shippingAddressRequirement: \"none\",\n        clientSecret: this.paymentIntentApple.clientSecret,\n}\nAll parameters in request object are required.\n```\n\n`window.AppleSpayPlugin.canMakePayments()` return boolean true/false\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawkoy%2Fcordova-plugin-apple-spay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawkoy%2Fcordova-plugin-apple-spay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawkoy%2Fcordova-plugin-apple-spay/lists"}