{"id":4781,"url":"https://github.com/APSL/react-native-sumup","last_synced_at":"2025-08-04T02:31:52.211Z","repository":{"id":57340483,"uuid":"51447019","full_name":"APSL/react-native-sumup","owner":"APSL","description":"Sumup SDK for React Native","archived":false,"fork":false,"pushed_at":"2017-09-19T08:39:09.000Z","size":7,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-07-15T11:18:14.194Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/APSL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-10T14:45:05.000Z","updated_at":"2024-03-21T12:44:55.000Z","dependencies_parsed_at":"2022-09-07T10:23:08.756Z","dependency_job_id":null,"html_url":"https://github.com/APSL/react-native-sumup","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/APSL/react-native-sumup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Freact-native-sumup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Freact-native-sumup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Freact-native-sumup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Freact-native-sumup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/APSL","download_url":"https://codeload.github.com/APSL/react-native-sumup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Freact-native-sumup/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268639931,"owners_count":24282678,"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-08-04T02:00:09.867Z","response_time":79,"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:23.147Z","updated_at":"2025-08-04T02:31:51.919Z","avatar_url":"https://github.com/APSL.png","language":"Objective-C","readme":"# react-native-sumup\n\nA React Native implementation of SumupSDK.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/wiki/APSL/react-native-sumup/sumup.png\" alt=\"Sumup Login\" width=\"400\"\u003e\n\u003c/p\u003e\n\n## Installation\n\nFirst install the iOS Sumup SDK, [instructions here](https://github.com/sumup/sumup-ios-sdk#preparing-your-xcode-project).\n\nThen, ``npm install react-native-sumup --save`` and add ``RNSumup.h`` and ``RNSumup.m`` to your project. Check that the ``*.m`` file is under **Compile Sources**.\n\n## Compatibility\n\nThis library has been tested with Sumup iOS SDK version **1.2.2**.\n\n## Example usage\n```javascript\nimport Sumup from 'react-native-sumup'\n// Setup Sumup\nSumup.setupWithAPIKey('API_KEY')\n// Open login\nSumup.presentLoginFromViewController()\n  .then(response =\u003e {\n    console.log('Response', response)\n  })\n  .catch(error =\u003e {\n    console.log('error', error)\n  })\n\n// Checkout\nlet request = {\n  totalAmount: '20.0',\n  title: 'Test',\n  currencyCode: 'EUR',\n  paymentOption: Sumup.paymentOptionMobilePayment\n}\nSumup.checkoutWithRequest(request)\n  .then(response) =\u003e {\n    console.log('Response', response)\n  })\n  .catch(error) =\u003e {\n    console.log('Error', error)\n  })\n```\n\n## API 🚧\n\nThis library is still a work in progress, only some methods have been implemented. Please feel free to open any issues if you need another SDK method implemented.\n\n| Method | Params | Description |\n|--------|--------|-------------|\n| ``setupWithAPIKey `` | ``apiKey``: String | Method to initialize SumupSDK. |\n| ``presentLoginFromViewController`` | ``completionBlock``: function | Opens a Sumup login view. |\n| ``checkoutWithRequest`` | ``request``: Object, ``completionBlock(response)``: function, ``errorBlock(error)``: function | Creates a Sumup payment request. |\n| `isLoggedIn` | | Returns `true` if the user has logged-in into the SDK. |\n\n### ``Request`` param\n\n| Param |  Type | Description |\n|-------|-------|-------------|\n| ``totalAmount`` | ``string`` | Will be parsed as ``decimalNumber``. |\n| ``title`` | ``string`` | |\n| ``currencyCode`` | ``string`` | |\n| ``paymentOption`` | ``SMPPaymentOptions`` | An enum of type ``SMPPaymentOptions``. Possible values: ``SMPPaymentOptionAny``, ``SMPPaymentOptionCardReader``, ``SMPPaymentOptionMobilePayment``. |\n\n## License\n\nMIT.\n\n## Development sponsor\n\nThis development has been sponsored by [SupSpot](http://supspot.ch).\n","funding_links":[],"categories":["Components"],"sub_categories":["Integrations"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAPSL%2Freact-native-sumup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAPSL%2Freact-native-sumup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAPSL%2Freact-native-sumup/lists"}