├── .gitignore ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── SECURITY.md ├── SMPPayment.framework ├── Headers ├── Resources ├── SMPPayment └── Versions │ ├── A │ ├── Headers │ │ ├── SMPPaymentRequest.h │ │ └── SMPSkipScreenOptions.h │ └── SMPPayment │ └── Current ├── SMPPaymentSampleApp.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcshareddata │ └── xcschemes │ └── SMPPaymentSampleApp.xcscheme └── SMPPaymentSampleApp ├── Default-568h@2x.png ├── Default.png ├── Default@2x.png ├── SMPPaymentAppDelegate.h ├── SMPPaymentAppDelegate.m ├── SMPPaymentSampleApp-Info.plist ├── SMPPaymentSampleApp-Prefix.pch ├── SMPPaymentViewController.h ├── SMPPaymentViewController.m ├── en.lproj ├── InfoPlist.strings └── SMPPaymentViewController.xib ├── main.m └── resources └── icon ├── Icon-72.png ├── Icon-72@2x.png ├── Icon-Small-50.png ├── Icon-Small-50@2x.png ├── Icon-Small.png ├── Icon-Small@2x.png ├── Icon.png └── Icon@2x.png /.gitignore: -------------------------------------------------------------------------------- 1 | ## Build generated 2 | build/ 3 | DerivedData 4 | 5 | ## Various settings 6 | *.pbxuser 7 | !default.pbxuser 8 | !default.perspectivev3 9 | xcuserdata 10 | 11 | ## Other 12 | *.xccheckout 13 | *.moved-aside 14 | *.xcuserstate 15 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our 6 | community a harassment-free experience for everyone, regardless of age, body 7 | size, visible or invisible disability, ethnicity, sex characteristics, gender 8 | identity and expression, level of experience, education, socio-economic status, 9 | nationality, personal appearance, race, caste, color, religion, or sexual 10 | identity and orientation. 11 | 12 | We pledge to act and interact in ways that contribute to an open, welcoming, 13 | diverse, inclusive, and healthy community. 14 | 15 | ## Our Standards 16 | 17 | Examples of behavior that contributes to a positive environment for our 18 | community include: 19 | 20 | - Demonstrating empathy and kindness toward other people 21 | - Being respectful of differing opinions, viewpoints, and experiences 22 | - Giving and gracefully accepting constructive feedback 23 | - Accepting responsibility and apologizing to those affected by our mistakes, 24 | and learning from the experience 25 | - Focusing on what is best not just for us as individuals, but for the overall 26 | community 27 | 28 | Examples of unacceptable behavior include: 29 | 30 | - The use of sexualized language or imagery, and sexual attention or advances of 31 | any kind 32 | - Trolling, insulting or derogatory comments, and personal or political attacks 33 | - Public or private harassment 34 | - Publishing others' private information, such as a physical or email address, 35 | without their explicit permission 36 | - Other conduct which could reasonably be considered inappropriate in a 37 | professional setting 38 | 39 | ## Enforcement Responsibilities 40 | 41 | Community leaders are responsible for clarifying and enforcing our standards of 42 | acceptable behavior and will take appropriate and fair corrective action in 43 | response to any behavior that they deem inappropriate, threatening, offensive, 44 | or harmful. 45 | 46 | Community leaders have the right and responsibility to remove, edit, or reject 47 | comments, commits, code, wiki edits, issues, and other contributions that are 48 | not aligned to this Code of Conduct, and will communicate reasons for moderation 49 | decisions when appropriate. 50 | 51 | ## Scope 52 | 53 | This Code of Conduct applies within all community spaces, and also applies when 54 | an individual is officially representing the community in public spaces. 55 | Examples of representing our community include using an official e-mail address, 56 | posting via an official social media account, or acting as an appointed 57 | representative at an online or offline event. 58 | 59 | ## Enforcement 60 | 61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 62 | reported to the community leaders responsible for enforcement listed on the 63 | [project's `README`](https://github.com/sumup-oss/circuit-ui#maintainers). 64 | All complaints will be reviewed and investigated promptly and fairly. 65 | 66 | All community leaders are obligated to respect the privacy and security of the 67 | reporter of any incident. 68 | 69 | ## Enforcement Guidelines 70 | 71 | Community leaders will follow these Community Impact Guidelines in determining 72 | the consequences for any action they deem in violation of this Code of Conduct: 73 | 74 | ### 1. Correction 75 | 76 | **Community Impact**: Use of inappropriate language or other behavior deemed 77 | unprofessional or unwelcome in the community. 78 | 79 | **Consequence**: A private, written warning from community leaders, providing 80 | clarity around the nature of the violation and an explanation of why the 81 | behavior was inappropriate. A public apology may be requested. 82 | 83 | ### 2. Warning 84 | 85 | **Community Impact**: A violation through a single incident or series of 86 | actions. 87 | 88 | **Consequence**: A warning with consequences for continued behavior. No 89 | interaction with the people involved, including unsolicited interaction with 90 | those enforcing the Code of Conduct, for a specified period of time. This 91 | includes avoiding interactions in community spaces as well as external channels 92 | like social media. Violating these terms may lead to a temporary or permanent 93 | ban. 94 | 95 | ### 3. Temporary Ban 96 | 97 | **Community Impact**: A serious violation of community standards, including 98 | sustained inappropriate behavior. 99 | 100 | **Consequence**: A temporary ban from any sort of interaction or public 101 | communication with the community for a specified period of time. No public or 102 | private interaction with the people involved, including unsolicited interaction 103 | with those enforcing the Code of Conduct, is allowed during this period. 104 | Violating these terms may lead to a permanent ban. 105 | 106 | ### 4. Permanent Ban 107 | 108 | **Community Impact**: Demonstrating a pattern of violation of community 109 | standards, including sustained inappropriate behavior, harassment of an 110 | individual, or aggression toward or disparagement of classes of individuals. 111 | 112 | **Consequence**: A permanent ban from any sort of public interaction within the 113 | community. 114 | 115 | ## Attribution 116 | 117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 118 | version 2.1, available at 119 | [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. 120 | 121 | Community Impact Guidelines were inspired by 122 | [Mozilla's code of conduct enforcement ladder][mozilla coc]. 123 | 124 | For answers to common questions about this code of conduct, see the FAQ at 125 | [https://www.contributor-covenant.org/faq][faq]. Translations are available at 126 | [https://www.contributor-covenant.org/translations][translations]. 127 | 128 | [homepage]: https://www.contributor-covenant.org 129 | [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html 130 | [mozilla coc]: https://github.com/mozilla/diversity 131 | [faq]: https://www.contributor-covenant.org/faq 132 | [translations]: https://www.contributor-covenant.org/translations 133 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright 2019 SumUp Ltd 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SumUp custom URL scheme 2 | 3 | Using the custom SumUp URL scheme you can accept card payments from your iOS app or website through the SumUp iOS app. 4 | To get started you will need to create a SumUp account and get an affiliate key in our [Developer section](https://me.sumup.com/developers). 5 | 6 | If you are going to open the SumUp app from your own iOS app, [SMPPaymentRequest](#smppaymentrequest) is a convenient way to do so. See the sample app project for details and examples. You might also want to take a look at the [SumUp iOS SDK](https://github.com/sumup/sumup-ios-sdk) to accept payments within your app. 7 | If you are planning to open the SumUp app using a URL, please find the parameters below. 8 | 9 | ## Base URL 10 | `sumupmerchant://pay/1.0` 11 | 12 | ## Mandatory query parameters 13 | 14 | | Key | Comment | 15 | | ---------------|:------- | 16 | |`amount` | The amount to charge. Please use `.` as a decimal separator. | 17 | |`currency` | The ISO 4217 code of currency to be charged. The currency needs to match the currency of the user that is logged into the SumUp app. For example EUR, GBP, BRL, CHF, PLN. | 18 | |`affiliate-key` | Your affiliate key. It needs to be associated with the calling app's bundle identifier. | 19 | 20 | 21 | ## Optional query parameters 22 | 23 | | Key | Comment | 24 | | --------------------|:------- | 25 | | `title` | An optional title to be set on this transaction.| 26 | |`callbackfail` | URL to be opened when the transaction fails. See [Callback query parameters](#Callback-query-parameters).| 27 | |`callbacksuccess` | URL to be opened when the transaction succeeds. See [Callback query parameters](#Callback-query-parameters).| 28 | |`receipt-email` | Prefills the email textfield when asking the customer whether he wants a receipts. | 29 | |`receipt-mobilephone`| Prefills the phone number textfield when asking the customer whether he wants a receipts. | 30 | |`foreign-tx-id` | An optional ID to be associated with this transaction. Please see our [API documentation](https://sumup.com/integration#transactionReportingAPIs) on how to retrieve a transaction using this ID. This ID has to be unique in the scope of a SumUp merchant account and its sub-accounts. It must not be longer than 128 characters and can only contain printable ASCII characters. *Supported by SumUp app version 1.53 and later. Version 1.53.2 and later will append it to the callback URLs as a [query parameter](#Callback-query-parameters) if provided.* | 31 | |`skip-screen-success`| To skip the screen shown at the end of a successful transaction, the `skip-screen-success=true` parameter can be used. When using the parameter your application is responsible for displaying the transaction result to the customer. In combination with the Receipts API your application can also send your own receipts, see [API documentation](https://sumup.com/docs/rest-api/transactions-api) for details. Please note success screens will still be shown when using the SumUp Air Lite readers. *Supported by SumUp app version 1.69 and later.*| 32 | 33 | 34 | ## Callback query parameters 35 | 36 | After the payment has been executed the SumUp app will open the `callbacksuccess` URL if the payment succeeded and the `callbackfail` URL if it did not. We will append the following query parameters if applicable: 37 | 38 | | Key | Possible values | Comment | 39 | | --------------- |:----------------:| :----------------------------- | 40 | | `smp-status` | success | The transaction has succeeded. | 41 | | | failed | The transaction has failed. | 42 | | | invalidstate | The transaction can not be accepted as the SumUp app is in an invalid state. Please ask the user to open the SumUp app and make sure he's ready to accept payments. | 43 | | `smp-tx-code` | TRANSACTION-CODE | The transaction code for this payment. Please see our [API documentation](https://sumup.com/integration#transactionReportingAPIs) to find out how to retreive details on this payment. *Supported by SumUp app version 1.53 and later.* | 44 | | `foreign-tx-id` | YOUR-TX-ID | Only if provided. See [Optional query parameters](#optional-query-parameters). *Supported by SumUp app version 1.53.2 and later.*| 45 | 46 | 47 | ## SMPPaymentRequest 48 | If you are building your own iOS app you can use this class to conveniently open the SumUp app to accept a payment. It knows about all the URL parameters and makes accepting a payment as easy as: 49 | 50 | ```objc 51 | SMPPaymentRequest *request; 52 | NSDecimalNumber *amount = [NSDecimalNumber decimalNumberWithString:@"10.00"]; 53 | 54 | request = [SMPPaymentRequest paymentRequestWithAmount:amount 55 | currency:@"EUR" 56 | title:@"My title" 57 | affiliateKey:@"YOUR-AFFILIATE-KEY"]; 58 | 59 | [request setCallbackURLSuccess:[NSURL URLWithString:@"samplepaymentapp://"]]; 60 | [request setCallbackURLFailure:[NSURL URLWithString:@"samplepaymentapp://"]]; 61 | 62 | /* This will open the following URL 63 | * sumupmerchant://pay/1.0?amount=10.00¤cy=EUR&affiliate-key=YOUR-AFFILIATE-KEY 64 | * &title=My%20title 65 | * &callbackfail=samplepaymentapp%3A%2F%2F 66 | * &callbacksuccess=samplepaymentapp%3A%2F%2F 67 | */ 68 | 69 | /* Optionally: Setting the option to skip success screens 70 | * to add skip-screen-success=true to the URL 71 | * Supported by SumUp app version 1.69 and later. 72 | * [request setSkipScreenOptions:SMPSkipScreenOptionSuccess]; 73 | */ 74 | 75 | [request openSumUpMerchantApp]; 76 | ``` 77 | 78 | 79 | ## Community 80 | 81 | - **Questions?** Get in contact with our integration team by sending an email to integration@sumup.com. 82 | - **Found a bug?** [Open an issue](https://github.com/sumup/sumup-ios-url-scheme/issues/new). Please provide as much information as possible. 83 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | The security of `sumup-ios-url-scheme` is of paramount importance to us, and we genuinely appreciate the community's efforts to identify and report vulnerabilities. 4 | 5 | ## Supported Versions 6 | 7 | We recommend users stay updated with the latest version of our project for optimal stability and security. 8 | 9 | ## Reporting a Vulnerability 10 | 11 | Please do not open GitHub issues or pull requests - this makes the vulnerability immediately visible to everyone, including malicious actors. Security issues in this open-source project can be safely reported via the private SumUp bug bounty program. 12 | 13 | To get an invite to our Hackerone private bug bounty program reach out to us via bugbounty at sumup com. 14 | 15 | The SumUp security team will triage your report and determine whether or not is it eligible for a bounty under our program. 16 | 17 | ## General Guidelines 18 | 19 | - **Prioritize Confidentiality:** We urge you not to disclose the vulnerability publicly until it's been addressed, ensuring the broader community isn't inadvertently put at risk. 20 | - **Ethical Practices:** Engage in responsible and ethical behavior. Refrain from actions that compromise user privacy, system integrity, or availability. 21 | - **When in Doubt, Reach Out:** If you're uncertain about the significance of a potential security issue, it's always better to err on the side of caution and notify us. 22 | -------------------------------------------------------------------------------- /SMPPayment.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /SMPPayment.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /SMPPayment.framework/SMPPayment: -------------------------------------------------------------------------------- 1 | Versions/Current/SMPPayment -------------------------------------------------------------------------------- /SMPPayment.framework/Versions/A/Headers/SMPPaymentRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // SMPPaymentRequest.h 3 | // SMPPayment 4 | // 5 | // Created by Lukas Mollidor on 10/31/12. 6 | // Copyright (c) 2012-2015 sumup. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "SMPSkipScreenOptions.h" 11 | 12 | extern NSString const *SMPPaymentRequestStatusParameterKey __deprecated_msg("Please use SMPPaymentRequestKeyStatus."); 13 | 14 | /** 15 | * This key will be used to append the status 16 | * as a query parameter to the callback URLs. 17 | * See below for possible values. 18 | */ 19 | extern NSString const *SMPPaymentRequestKeyStatus; 20 | extern NSString const *SMPPaymentRequestStatusSuccess; // checkout has succeeded 21 | extern NSString const *SMPPaymentRequestStatusFailed; // checkout failed 22 | extern NSString const *SMPPaymentRequestStatusInvalidState; // The SumUp app can not perform a checkout. Please ask the user to open the SumUp app and make sure she's ready to accept a payment. 23 | 24 | 25 | /** 26 | * This key will be used to append a localized message 27 | * as a query parameter to the callback URLs. 28 | */ 29 | extern NSString const *SMPPaymentRequestKeyMessage; 30 | 31 | /** 32 | * This key will be used to append the transaction code 33 | * as a query parameter to the callback URLs. 34 | */ 35 | extern NSString const *SMPPaymentRequestKeyTransactionCode; 36 | 37 | /** 38 | * This key will be used to append the foreignTransactionID (if provided) 39 | * as a query parameter to the callback URLs. 40 | */ 41 | extern NSString const *SMPPaymentRequestKeyForeignTransactionID; 42 | 43 | @interface SMPPaymentRequest : NSObject 44 | 45 | /** 46 | * A preconfigured payment request including all mandatory paramenters to open the SumUp merchant app. 47 | * Will return nil if a mandatory parameter is missing. 48 | * 49 | * @param anAmount The amount to charge. E.g. 12.34 as a NSDecimalNumber (mandatory) 50 | * @param iso4217code The currency ISO code. E.g. EUR (mandatory) 51 | * @param optionalTitle a title to set on this payment (optional) 52 | * @param key your app's affiliate key (mandatory) 53 | * 54 | * @return A preconfigured payment request to open the SumUp app. 55 | */ 56 | + (SMPPaymentRequest *)paymentRequestWithAmount:(NSDecimalNumber *)anAmount currency:(NSString *)iso4217code title:(NSString *)optionalTitle affiliateKey:(NSString *)key; 57 | 58 | /** 59 | * Will check whether the SumUp app is installed by calling 60 | * -[UIApplication canOpenURL:] using SumUp's URL scheme 'sumupmerchant://'. 61 | * 62 | * Please make sure to add 'sumupmerchant' to your list of LSApplicationQueriesSchemes 63 | * See https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW14 64 | * 65 | * 66 | * @return A boolean indicating if the SumUp app is installed. 67 | */ 68 | + (BOOL)canOpenSumUpMerchantApp; 69 | 70 | /** 71 | * Will open AppStore and reveal SumUp by calling 72 | * [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://itunes.apple.com/app/id514879214&mt=8"]] 73 | * See https://developer.apple.com/library/ios/qa/qa1629/_index.html 74 | * 75 | * @return A boolean indicating if AppStore will be opened. 76 | */ 77 | + (BOOL)showSumUpMerchantInAppStore; 78 | 79 | @property (strong, readonly) NSDecimalNumber *amount; 80 | @property (strong, readonly) NSString *currencyCode; 81 | @property (strong, readonly) NSString *title; 82 | @property (strong, readonly) NSString *affiliateKey; 83 | 84 | /** 85 | * Optional URLs to call back source application after transaction 86 | * has been executed in then SumUp app. 87 | * These URLs are optional, however we would encourage you to set 88 | * them to bring the user back to your app or website once the 89 | * transaction has been finished. 90 | * 91 | * See https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102207 92 | */ 93 | @property (strong) NSURL *callbackURLSuccess; 94 | @property (strong) NSURL *callbackURLFailure; 95 | 96 | @property (strong) NSString *receiptEmailAddress; 97 | @property (strong) NSString *receiptPhoneNumber; 98 | 99 | /** 100 | * An (optional) ID to be associated with this transaction. 101 | * See https://sumup.com/integration#transactionReportingAPIs 102 | * on how to retrieve a transaction using this ID. 103 | * This ID has to be unique in the scope of a SumUp merchant account and its sub-accounts. 104 | * It must not be longer than 128 characters and can only contain printable ASCII characters. 105 | * If provided it will be appended to the callback URLs as a query parameter. 106 | */ 107 | @property (strong) NSString *foreignTransactionID; 108 | 109 | /** 110 | * An optional flag to skip the confirmation screen in checkout. 111 | * If set, the checkout will be dismissed w/o user interaction. 112 | * Default is SMPSkipScreenOptionNone. 113 | */ 114 | @property (nonatomic) SMPSkipScreenOptions skipScreenOptions; 115 | 116 | 117 | - (void)addTag:(NSString *)aTag forKey:(NSString *)tagKey; 118 | 119 | /** 120 | * Will open the SumUp app by calling 121 | * -[UIApplication openURL:] with the urlToLaunchSumupMerchantApp (see below). 122 | * Returns NO if the URL can not be opened (e.g. if the SumUp app is not installed). 123 | * 124 | * @return Boolean indicating if SumUp app will be opened. 125 | */ 126 | - (BOOL)openSumUpMerchantApp; 127 | 128 | /** 129 | * The preconfigured URL to open the SumUp app with a payment request. 130 | * Will return nil if mandatory parameters are missing. 131 | * 132 | * @return a URL to launch the SumUp app with. 133 | */ 134 | - (NSURL *)urlToLaunchSumupMerchantApp; 135 | 136 | @end 137 | -------------------------------------------------------------------------------- /SMPPayment.framework/Versions/A/Headers/SMPSkipScreenOptions.h: -------------------------------------------------------------------------------- 1 | // 2 | // SMPSkipScreenOptions.h 3 | // SumupSDK 4 | // 5 | // Created by Lukas Mollidor on 08.06.17. 6 | // Copyright (c) 2017 SumUp Payments Limited. All rights reserved. 7 | // 8 | 9 | #ifndef SMPSkipScreenOptions_h 10 | #define SMPSkipScreenOptions_h 11 | 12 | /** 13 | * SMPSkipScreenOptions allow for skipping the confirmation screen. 14 | */ 15 | typedef NS_OPTIONS(NSUInteger, SMPSkipScreenOptions) { 16 | /** 17 | * Never skip confirmation screen. 18 | */ 19 | SMPSkipScreenOptionNone = 0, 20 | /** 21 | * Skip confirmation screen (i.e. screen that would ask for a receipt) for successful transactions. 22 | */ 23 | SMPSkipScreenOptionSuccess = 1 << 0, 24 | }; 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /SMPPayment.framework/Versions/A/SMPPayment: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumup/sumup-ios-url-scheme/bc48c340a494abad512f7dbb536f224e05b208a7/SMPPayment.framework/Versions/A/SMPPayment -------------------------------------------------------------------------------- /SMPPayment.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /SMPPaymentSampleApp.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | DCC2BCDE1656BF2D006BF557 /* SMPPayment.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DCC2BCDD1656BF2D006BF557 /* SMPPayment.framework */; }; 11 | DCC2BCE81656C18D006BF557 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = DCC2BCE01656C18D006BF557 /* Icon-72.png */; }; 12 | DCC2BCE91656C18D006BF557 /* Icon-72@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DCC2BCE11656C18D006BF557 /* Icon-72@2x.png */; }; 13 | DCC2BCEA1656C18D006BF557 /* Icon-Small-50.png in Resources */ = {isa = PBXBuildFile; fileRef = DCC2BCE21656C18D006BF557 /* Icon-Small-50.png */; }; 14 | DCC2BCEB1656C18D006BF557 /* Icon-Small-50@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DCC2BCE31656C18D006BF557 /* Icon-Small-50@2x.png */; }; 15 | DCC2BCEC1656C18D006BF557 /* Icon-Small.png in Resources */ = {isa = PBXBuildFile; fileRef = DCC2BCE41656C18D006BF557 /* Icon-Small.png */; }; 16 | DCC2BCED1656C18D006BF557 /* Icon-Small@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DCC2BCE51656C18D006BF557 /* Icon-Small@2x.png */; }; 17 | DCC2BCEE1656C18D006BF557 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = DCC2BCE61656C18D006BF557 /* Icon.png */; }; 18 | DCC2BCEF1656C18D006BF557 /* Icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = DCC2BCE71656C18D006BF557 /* Icon@2x.png */; }; 19 | E97A96E616413A4D00C9EC7C /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = E97A96E416413A4D00C9EC7C /* InfoPlist.strings */; }; 20 | E97A96E816413A4D00C9EC7C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E97A96E716413A4D00C9EC7C /* main.m */; }; 21 | E97A96EC16413A4D00C9EC7C /* SMPPaymentAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E97A96EB16413A4D00C9EC7C /* SMPPaymentAppDelegate.m */; }; 22 | E97A96EE16413A4D00C9EC7C /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = E97A96ED16413A4D00C9EC7C /* Default.png */; }; 23 | E97A96F016413A4D00C9EC7C /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E97A96EF16413A4D00C9EC7C /* Default@2x.png */; }; 24 | E97A96F216413A4D00C9EC7C /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E97A96F116413A4D00C9EC7C /* Default-568h@2x.png */; }; 25 | E97A96F516413A4D00C9EC7C /* SMPPaymentViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E97A96F416413A4D00C9EC7C /* SMPPaymentViewController.m */; }; 26 | E97A96F816413A4D00C9EC7C /* SMPPaymentViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E97A96F616413A4D00C9EC7C /* SMPPaymentViewController.xib */; }; 27 | E9C5F0EC1B988E9900EE5AA2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E9C5F0EB1B988E9900EE5AA2 /* UIKit.framework */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | DCC2BCDD1656BF2D006BF557 /* SMPPayment.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = SMPPayment.framework; sourceTree = ""; }; 32 | DCC2BCE01656C18D006BF557 /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-72.png"; sourceTree = ""; }; 33 | DCC2BCE11656C18D006BF557 /* Icon-72@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-72@2x.png"; sourceTree = ""; }; 34 | DCC2BCE21656C18D006BF557 /* Icon-Small-50.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-Small-50.png"; sourceTree = ""; }; 35 | DCC2BCE31656C18D006BF557 /* Icon-Small-50@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-Small-50@2x.png"; sourceTree = ""; }; 36 | DCC2BCE41656C18D006BF557 /* Icon-Small.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-Small.png"; sourceTree = ""; }; 37 | DCC2BCE51656C18D006BF557 /* Icon-Small@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-Small@2x.png"; sourceTree = ""; }; 38 | DCC2BCE61656C18D006BF557 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = ""; }; 39 | DCC2BCE71656C18D006BF557 /* Icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon@2x.png"; sourceTree = ""; }; 40 | E97A96D716413A4D00C9EC7C /* SMPPaymentSampleApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SMPPaymentSampleApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | E97A96E316413A4D00C9EC7C /* SMPPaymentSampleApp-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SMPPaymentSampleApp-Info.plist"; sourceTree = ""; }; 42 | E97A96E516413A4D00C9EC7C /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 43 | E97A96E716413A4D00C9EC7C /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 44 | E97A96E916413A4D00C9EC7C /* SMPPaymentSampleApp-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SMPPaymentSampleApp-Prefix.pch"; sourceTree = ""; }; 45 | E97A96EA16413A4D00C9EC7C /* SMPPaymentAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SMPPaymentAppDelegate.h; sourceTree = ""; }; 46 | E97A96EB16413A4D00C9EC7C /* SMPPaymentAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SMPPaymentAppDelegate.m; sourceTree = ""; }; 47 | E97A96ED16413A4D00C9EC7C /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; 48 | E97A96EF16413A4D00C9EC7C /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = ""; }; 49 | E97A96F116413A4D00C9EC7C /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; 50 | E97A96F316413A4D00C9EC7C /* SMPPaymentViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SMPPaymentViewController.h; sourceTree = ""; }; 51 | E97A96F416413A4D00C9EC7C /* SMPPaymentViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SMPPaymentViewController.m; sourceTree = ""; }; 52 | E97A96F716413A4D00C9EC7C /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/SMPPaymentViewController.xib; sourceTree = ""; }; 53 | E9C5F0EB1B988E9900EE5AA2 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | E97A96D416413A4D00C9EC7C /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | E9C5F0EC1B988E9900EE5AA2 /* UIKit.framework in Frameworks */, 62 | DCC2BCDE1656BF2D006BF557 /* SMPPayment.framework in Frameworks */, 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | /* End PBXFrameworksBuildPhase section */ 67 | 68 | /* Begin PBXGroup section */ 69 | DCC2BCDF1656C18D006BF557 /* icon */ = { 70 | isa = PBXGroup; 71 | children = ( 72 | DCC2BCE01656C18D006BF557 /* Icon-72.png */, 73 | DCC2BCE11656C18D006BF557 /* Icon-72@2x.png */, 74 | DCC2BCE21656C18D006BF557 /* Icon-Small-50.png */, 75 | DCC2BCE31656C18D006BF557 /* Icon-Small-50@2x.png */, 76 | DCC2BCE41656C18D006BF557 /* Icon-Small.png */, 77 | DCC2BCE51656C18D006BF557 /* Icon-Small@2x.png */, 78 | DCC2BCE61656C18D006BF557 /* Icon.png */, 79 | DCC2BCE71656C18D006BF557 /* Icon@2x.png */, 80 | ); 81 | name = icon; 82 | path = resources/icon; 83 | sourceTree = ""; 84 | }; 85 | E97A96CC16413A4D00C9EC7C = { 86 | isa = PBXGroup; 87 | children = ( 88 | E97A96E116413A4D00C9EC7C /* SMPPaymentSampleApp */, 89 | E97A96DA16413A4D00C9EC7C /* Frameworks */, 90 | E97A96D816413A4D00C9EC7C /* Products */, 91 | ); 92 | sourceTree = ""; 93 | }; 94 | E97A96D816413A4D00C9EC7C /* Products */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | E97A96D716413A4D00C9EC7C /* SMPPaymentSampleApp.app */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | E97A96DA16413A4D00C9EC7C /* Frameworks */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | E9C5F0EB1B988E9900EE5AA2 /* UIKit.framework */, 106 | DCC2BCDD1656BF2D006BF557 /* SMPPayment.framework */, 107 | ); 108 | name = Frameworks; 109 | sourceTree = ""; 110 | }; 111 | E97A96E116413A4D00C9EC7C /* SMPPaymentSampleApp */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | E97A96EA16413A4D00C9EC7C /* SMPPaymentAppDelegate.h */, 115 | E97A96EB16413A4D00C9EC7C /* SMPPaymentAppDelegate.m */, 116 | E97A96F316413A4D00C9EC7C /* SMPPaymentViewController.h */, 117 | E97A96F416413A4D00C9EC7C /* SMPPaymentViewController.m */, 118 | E97A96F616413A4D00C9EC7C /* SMPPaymentViewController.xib */, 119 | E97A96E216413A4D00C9EC7C /* Supporting Files */, 120 | ); 121 | path = SMPPaymentSampleApp; 122 | sourceTree = ""; 123 | }; 124 | E97A96E216413A4D00C9EC7C /* Supporting Files */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | DCC2BCDF1656C18D006BF557 /* icon */, 128 | E97A96E316413A4D00C9EC7C /* SMPPaymentSampleApp-Info.plist */, 129 | E97A96E416413A4D00C9EC7C /* InfoPlist.strings */, 130 | E97A96E716413A4D00C9EC7C /* main.m */, 131 | E97A96E916413A4D00C9EC7C /* SMPPaymentSampleApp-Prefix.pch */, 132 | E97A96ED16413A4D00C9EC7C /* Default.png */, 133 | E97A96EF16413A4D00C9EC7C /* Default@2x.png */, 134 | E97A96F116413A4D00C9EC7C /* Default-568h@2x.png */, 135 | ); 136 | name = "Supporting Files"; 137 | sourceTree = ""; 138 | }; 139 | /* End PBXGroup section */ 140 | 141 | /* Begin PBXNativeTarget section */ 142 | E97A96D616413A4D00C9EC7C /* SMPPaymentSampleApp */ = { 143 | isa = PBXNativeTarget; 144 | buildConfigurationList = E97A971316413A4D00C9EC7C /* Build configuration list for PBXNativeTarget "SMPPaymentSampleApp" */; 145 | buildPhases = ( 146 | E97A96D316413A4D00C9EC7C /* Sources */, 147 | E97A96D416413A4D00C9EC7C /* Frameworks */, 148 | E97A96D516413A4D00C9EC7C /* Resources */, 149 | ); 150 | buildRules = ( 151 | ); 152 | dependencies = ( 153 | ); 154 | name = SMPPaymentSampleApp; 155 | productName = checkout; 156 | productReference = E97A96D716413A4D00C9EC7C /* SMPPaymentSampleApp.app */; 157 | productType = "com.apple.product-type.application"; 158 | }; 159 | /* End PBXNativeTarget section */ 160 | 161 | /* Begin PBXProject section */ 162 | E97A96CE16413A4D00C9EC7C /* Project object */ = { 163 | isa = PBXProject; 164 | attributes = { 165 | CLASSPREFIX = SMPCO; 166 | LastUpgradeCheck = 0730; 167 | ORGANIZATIONNAME = sumup; 168 | }; 169 | buildConfigurationList = E97A96D116413A4D00C9EC7C /* Build configuration list for PBXProject "SMPPaymentSampleApp" */; 170 | compatibilityVersion = "Xcode 3.2"; 171 | developmentRegion = English; 172 | hasScannedForEncodings = 0; 173 | knownRegions = ( 174 | en, 175 | ); 176 | mainGroup = E97A96CC16413A4D00C9EC7C; 177 | productRefGroup = E97A96D816413A4D00C9EC7C /* Products */; 178 | projectDirPath = ""; 179 | projectRoot = ""; 180 | targets = ( 181 | E97A96D616413A4D00C9EC7C /* SMPPaymentSampleApp */, 182 | ); 183 | }; 184 | /* End PBXProject section */ 185 | 186 | /* Begin PBXResourcesBuildPhase section */ 187 | E97A96D516413A4D00C9EC7C /* Resources */ = { 188 | isa = PBXResourcesBuildPhase; 189 | buildActionMask = 2147483647; 190 | files = ( 191 | E97A96E616413A4D00C9EC7C /* InfoPlist.strings in Resources */, 192 | E97A96EE16413A4D00C9EC7C /* Default.png in Resources */, 193 | E97A96F016413A4D00C9EC7C /* Default@2x.png in Resources */, 194 | E97A96F216413A4D00C9EC7C /* Default-568h@2x.png in Resources */, 195 | E97A96F816413A4D00C9EC7C /* SMPPaymentViewController.xib in Resources */, 196 | DCC2BCE81656C18D006BF557 /* Icon-72.png in Resources */, 197 | DCC2BCE91656C18D006BF557 /* Icon-72@2x.png in Resources */, 198 | DCC2BCEA1656C18D006BF557 /* Icon-Small-50.png in Resources */, 199 | DCC2BCEB1656C18D006BF557 /* Icon-Small-50@2x.png in Resources */, 200 | DCC2BCEC1656C18D006BF557 /* Icon-Small.png in Resources */, 201 | DCC2BCED1656C18D006BF557 /* Icon-Small@2x.png in Resources */, 202 | DCC2BCEE1656C18D006BF557 /* Icon.png in Resources */, 203 | DCC2BCEF1656C18D006BF557 /* Icon@2x.png in Resources */, 204 | ); 205 | runOnlyForDeploymentPostprocessing = 0; 206 | }; 207 | /* End PBXResourcesBuildPhase section */ 208 | 209 | /* Begin PBXSourcesBuildPhase section */ 210 | E97A96D316413A4D00C9EC7C /* Sources */ = { 211 | isa = PBXSourcesBuildPhase; 212 | buildActionMask = 2147483647; 213 | files = ( 214 | E97A96E816413A4D00C9EC7C /* main.m in Sources */, 215 | E97A96EC16413A4D00C9EC7C /* SMPPaymentAppDelegate.m in Sources */, 216 | E97A96F516413A4D00C9EC7C /* SMPPaymentViewController.m in Sources */, 217 | ); 218 | runOnlyForDeploymentPostprocessing = 0; 219 | }; 220 | /* End PBXSourcesBuildPhase section */ 221 | 222 | /* Begin PBXVariantGroup section */ 223 | E97A96E416413A4D00C9EC7C /* InfoPlist.strings */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | E97A96E516413A4D00C9EC7C /* en */, 227 | ); 228 | name = InfoPlist.strings; 229 | sourceTree = ""; 230 | }; 231 | E97A96F616413A4D00C9EC7C /* SMPPaymentViewController.xib */ = { 232 | isa = PBXVariantGroup; 233 | children = ( 234 | E97A96F716413A4D00C9EC7C /* en */, 235 | ); 236 | name = SMPPaymentViewController.xib; 237 | sourceTree = ""; 238 | }; 239 | /* End PBXVariantGroup section */ 240 | 241 | /* Begin XCBuildConfiguration section */ 242 | E97A971116413A4D00C9EC7C /* Debug */ = { 243 | isa = XCBuildConfiguration; 244 | buildSettings = { 245 | ALWAYS_SEARCH_USER_PATHS = NO; 246 | CLANG_ENABLE_OBJC_ARC = YES; 247 | CLANG_WARN_EMPTY_BODY = YES; 248 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 249 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 250 | COPY_PHASE_STRIP = NO; 251 | ENABLE_TESTABILITY = YES; 252 | GCC_OPTIMIZATION_LEVEL = 0; 253 | GCC_PREPROCESSOR_DEFINITIONS = ( 254 | "DEBUG=1", 255 | "$(inherited)", 256 | ); 257 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 258 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 259 | GCC_WARN_UNUSED_VARIABLE = YES; 260 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 261 | ONLY_ACTIVE_ARCH = YES; 262 | SDKROOT = iphoneos; 263 | TARGETED_DEVICE_FAMILY = "1,2"; 264 | }; 265 | name = Debug; 266 | }; 267 | E97A971216413A4D00C9EC7C /* Release */ = { 268 | isa = XCBuildConfiguration; 269 | buildSettings = { 270 | ALWAYS_SEARCH_USER_PATHS = NO; 271 | CLANG_ENABLE_OBJC_ARC = YES; 272 | CLANG_WARN_EMPTY_BODY = YES; 273 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 274 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 275 | COPY_PHASE_STRIP = YES; 276 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 277 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 278 | GCC_WARN_UNUSED_VARIABLE = YES; 279 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 280 | OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; 281 | SDKROOT = iphoneos; 282 | TARGETED_DEVICE_FAMILY = "1,2"; 283 | VALIDATE_PRODUCT = YES; 284 | }; 285 | name = Release; 286 | }; 287 | E97A971416413A4D00C9EC7C /* Debug */ = { 288 | isa = XCBuildConfiguration; 289 | buildSettings = { 290 | DEVELOPMENT_TEAM = ""; 291 | ENABLE_BITCODE = NO; 292 | FRAMEWORK_SEARCH_PATHS = ( 293 | "$(inherited)", 294 | "\"$(SRCROOT)/\"", 295 | ); 296 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 297 | GCC_PREFIX_HEADER = "SMPPaymentSampleApp/SMPPaymentSampleApp-Prefix.pch"; 298 | INFOPLIST_FILE = "SMPPaymentSampleApp/SMPPaymentSampleApp-Info.plist"; 299 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 300 | LIBRARY_SEARCH_PATHS = ""; 301 | OTHER_LDFLAGS = "-ObjC"; 302 | PRODUCT_BUNDLE_IDENTIFIER = "com.sumup.${PRODUCT_NAME:rfc1034identifier}"; 303 | PRODUCT_NAME = SMPPaymentSampleApp; 304 | TARGETED_DEVICE_FAMILY = "1,2"; 305 | WRAPPER_EXTENSION = app; 306 | }; 307 | name = Debug; 308 | }; 309 | E97A971516413A4D00C9EC7C /* Release */ = { 310 | isa = XCBuildConfiguration; 311 | buildSettings = { 312 | DEVELOPMENT_TEAM = ""; 313 | ENABLE_BITCODE = NO; 314 | FRAMEWORK_SEARCH_PATHS = ( 315 | "$(inherited)", 316 | "\"$(SRCROOT)/\"", 317 | ); 318 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 319 | GCC_PREFIX_HEADER = "SMPPaymentSampleApp/SMPPaymentSampleApp-Prefix.pch"; 320 | INFOPLIST_FILE = "SMPPaymentSampleApp/SMPPaymentSampleApp-Info.plist"; 321 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 322 | LIBRARY_SEARCH_PATHS = ""; 323 | OTHER_LDFLAGS = "-ObjC"; 324 | PRODUCT_BUNDLE_IDENTIFIER = "com.sumup.${PRODUCT_NAME:rfc1034identifier}"; 325 | PRODUCT_NAME = SMPPaymentSampleApp; 326 | TARGETED_DEVICE_FAMILY = "1,2"; 327 | WRAPPER_EXTENSION = app; 328 | }; 329 | name = Release; 330 | }; 331 | /* End XCBuildConfiguration section */ 332 | 333 | /* Begin XCConfigurationList section */ 334 | E97A96D116413A4D00C9EC7C /* Build configuration list for PBXProject "SMPPaymentSampleApp" */ = { 335 | isa = XCConfigurationList; 336 | buildConfigurations = ( 337 | E97A971116413A4D00C9EC7C /* Debug */, 338 | E97A971216413A4D00C9EC7C /* Release */, 339 | ); 340 | defaultConfigurationIsVisible = 0; 341 | defaultConfigurationName = Release; 342 | }; 343 | E97A971316413A4D00C9EC7C /* Build configuration list for PBXNativeTarget "SMPPaymentSampleApp" */ = { 344 | isa = XCConfigurationList; 345 | buildConfigurations = ( 346 | E97A971416413A4D00C9EC7C /* Debug */, 347 | E97A971516413A4D00C9EC7C /* Release */, 348 | ); 349 | defaultConfigurationIsVisible = 0; 350 | defaultConfigurationName = Release; 351 | }; 352 | /* End XCConfigurationList section */ 353 | }; 354 | rootObject = E97A96CE16413A4D00C9EC7C /* Project object */; 355 | } 356 | -------------------------------------------------------------------------------- /SMPPaymentSampleApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SMPPaymentSampleApp.xcodeproj/xcshareddata/xcschemes/SMPPaymentSampleApp.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /SMPPaymentSampleApp/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumup/sumup-ios-url-scheme/bc48c340a494abad512f7dbb536f224e05b208a7/SMPPaymentSampleApp/Default-568h@2x.png -------------------------------------------------------------------------------- /SMPPaymentSampleApp/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumup/sumup-ios-url-scheme/bc48c340a494abad512f7dbb536f224e05b208a7/SMPPaymentSampleApp/Default.png -------------------------------------------------------------------------------- /SMPPaymentSampleApp/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumup/sumup-ios-url-scheme/bc48c340a494abad512f7dbb536f224e05b208a7/SMPPaymentSampleApp/Default@2x.png -------------------------------------------------------------------------------- /SMPPaymentSampleApp/SMPPaymentAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // SMPPaymentSampleAppDelegate.h 3 | // SMPPaymentSampleApp 4 | // 5 | // Created by Lukas Mollidor on 10/31/12. 6 | // Copyright (c) 2012-2015 SumUp. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class SMPPaymentViewController; 12 | 13 | @interface SMPPaymentAppDelegate : UIResponder 14 | 15 | @property (strong, nonatomic) UIWindow *window; 16 | 17 | @property (strong, nonatomic) SMPPaymentViewController *viewController; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /SMPPaymentSampleApp/SMPPaymentAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // SMPPaymentSampleAppDelegate.m 3 | // SMPPaymentSampleApp 4 | // 5 | // Created by Lukas Mollidor on 10/31/12. 6 | // Copyright (c) 2012-2015 SumUp. All rights reserved. 7 | // 8 | 9 | #import "SMPPaymentAppDelegate.h" 10 | #import "SMPPaymentViewController.h" 11 | #import 12 | 13 | @implementation SMPPaymentAppDelegate 14 | 15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 16 | { 17 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 18 | self.viewController = [[SMPPaymentViewController alloc] initWithNibName:@"SMPPaymentViewController" bundle:nil]; 19 | 20 | self.window.rootViewController = self.viewController; 21 | [self.window makeKeyAndVisible]; 22 | return YES; 23 | } 24 | 25 | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { 26 | if (![sourceApplication hasPrefix:@"com.sumup.merchant"]) { 27 | NSLog(@"Not SumUp merchant app."); 28 | return YES; 29 | } 30 | 31 | // Get status and transaction code from URL query when being opened from SumUp app. 32 | NSArray *pairs = [[url query] componentsSeparatedByString:@"&"]; 33 | NSString *status; 34 | NSString *txCode; 35 | 36 | for (NSString *kvp in pairs) { 37 | NSArray *kv = [kvp componentsSeparatedByString:@"="]; 38 | 39 | if ([kv count] != 2) { 40 | continue; 41 | } 42 | 43 | NSString *key = [kv[0] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; 44 | NSString *val = [kv[1] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; 45 | 46 | if ([key isEqualToString:(NSString *)SMPPaymentRequestKeyStatus]) { 47 | status = val; 48 | } else if ([key isEqualToString:(NSString *)SMPPaymentRequestKeyTransactionCode]) { 49 | txCode = key; 50 | } 51 | } 52 | 53 | NSString *alertMessage; 54 | 55 | // check if payment did succeed 56 | if ([status isEqualToString:(NSString *)SMPPaymentRequestStatusSuccess]) { 57 | alertMessage = [NSString stringWithFormat:@"Thanks. Payment successful. Code: %@.", txCode]; 58 | } else { 59 | alertMessage = [NSString stringWithFormat:@"Payment failed with status and code: %@ - %@", status, txCode]; 60 | } 61 | 62 | NSLog(@"status - code: %@ - %@", status, txCode); 63 | 64 | [[[UIAlertView alloc] initWithTitle:status message:alertMessage delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] show]; 65 | 66 | return YES; 67 | } 68 | 69 | @end 70 | -------------------------------------------------------------------------------- /SMPPaymentSampleApp/SMPPaymentSampleApp-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | sumup API 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFiles 12 | 13 | Icon.png 14 | Icon@2x.png 15 | Icon-72.png 16 | Icon-72@2x.png 17 | Icon-Small.png 18 | Icon-Small@2x.png 19 | Icon-Small-50.png 20 | Icon-Small-50@2x.png 21 | 22 | CFBundleIdentifier 23 | $(PRODUCT_BUNDLE_IDENTIFIER) 24 | CFBundleInfoDictionaryVersion 25 | 6.0 26 | CFBundleName 27 | ${PRODUCT_NAME} 28 | CFBundlePackageType 29 | APPL 30 | CFBundleShortVersionString 31 | 1.00.109 32 | CFBundleSignature 33 | ???? 34 | CFBundleURLTypes 35 | 36 | 37 | CFBundleTypeRole 38 | Editor 39 | CFBundleURLName 40 | com.sumup.samplepayment 41 | CFBundleURLSchemes 42 | 43 | samplepaymentapp 44 | 45 | 46 | 47 | CFBundleVersion 48 | 9 49 | LSRequiresIPhoneOS 50 | 51 | UIPrerenderedIcon 52 | 53 | UIRequiredDeviceCapabilities 54 | 55 | armv7 56 | 57 | UISupportedInterfaceOrientations 58 | 59 | UIInterfaceOrientationPortrait 60 | 61 | UISupportedInterfaceOrientations~ipad 62 | 63 | UIInterfaceOrientationPortrait 64 | UIInterfaceOrientationPortraitUpsideDown 65 | UIInterfaceOrientationLandscapeLeft 66 | UIInterfaceOrientationLandscapeRight 67 | 68 | LSApplicationQueriesSchemes 69 | 70 | sumupmerchant 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /SMPPaymentSampleApp/SMPPaymentSampleApp-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'checkout' target in the 'checkout' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_4_0 8 | #warning "This project uses features only available in iOS SDK 4.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /SMPPaymentSampleApp/SMPPaymentViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SMPPaymentViewController.h 3 | // SMPPaymentSampleApp 4 | // 5 | // Created by Lukas Mollidor on 10/31/12. 6 | // Copyright (c) 2012-2015 SumUp. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SMPPaymentViewController : UIViewController 12 | @property (weak, nonatomic) IBOutlet UITextField *textFieldAmount; 13 | @property (weak, nonatomic) IBOutlet UITextField *textFieldCurrency; 14 | @property (weak, nonatomic) IBOutlet UITextField *textFieldTitle; 15 | @property (weak, nonatomic) IBOutlet UITextField *textFieldPhone; 16 | @property (weak, nonatomic) IBOutlet UITextField *textFieldEmail; 17 | @property (weak, nonatomic) IBOutlet UITextView *textView; 18 | 19 | - (IBAction)payFromSender:(id)sender; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /SMPPaymentSampleApp/SMPPaymentViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // SMPPaymentViewController.m 3 | // SMPPaymentSampleApp 4 | // 5 | // Created by Lukas Mollidor on 10/31/12. 6 | // Copyright (c) 2012-2015 SumUp. All rights reserved. 7 | // 8 | 9 | #import "SMPPaymentViewController.h" 10 | #import 11 | 12 | #define AFFILIATE_KEY @"169f0ee2-bc0a-470f-8fac-f30c26d698da" 13 | 14 | @implementation SMPPaymentViewController 15 | 16 | - (void)viewDidAppear:(BOOL)animated { 17 | [super viewDidAppear:animated]; 18 | 19 | NSString *currency = [[NSUserDefaults standardUserDefaults] stringForKey:@"currency"]; 20 | 21 | if (!currency.length) { 22 | currency = @"EUR"; 23 | } 24 | 25 | [self.textFieldCurrency setText:currency]; 26 | 27 | // verify that SumUp app is installed. If it's not ask user to install and open AppStore using 28 | // +[SMPPaymentRequest showSumUpMerchantInAppStore] 29 | NSLog(@"SumUp app is installed: %@", [SMPPaymentRequest canOpenSumUpMerchantApp]?@"YES":@"NO"); 30 | } 31 | 32 | - (IBAction)payFromSender:(id)sender { 33 | [[NSUserDefaults standardUserDefaults] setObject:self.textFieldCurrency.text forKey:@"currency"]; 34 | 35 | SMPPaymentRequest *request = [SMPPaymentRequest paymentRequestWithAmount:[self amountNumber] currency:self.textFieldCurrency.text title:self.textFieldTitle.text affiliateKey:AFFILIATE_KEY]; 36 | 37 | // This should match your app's URL scheme. 38 | // See "URL Types" in target's "Info" tab in project editor. 39 | [request setCallbackURLFailure:[NSURL URLWithString:@"samplepaymentapp://"]]; 40 | [request setCallbackURLSuccess:[NSURL URLWithString:@"samplepaymentapp://"]]; 41 | 42 | // optional parameters to be pre-filled when sending a receipt 43 | [request setReceiptPhoneNumber:self.textFieldPhone.text]; 44 | [request setReceiptEmailAddress:self.textFieldEmail.text]; 45 | 46 | // The foreignTransactionID is an optional parameter and can be used 47 | // to retrieve a transaction from SumUp's API. 48 | // See -[SMPPaymentRequest foreignTransactionID] 49 | [request setForeignTransactionID:[NSString stringWithFormat:@"your-unique-id-%@", [[NSProcessInfo processInfo] globallyUniqueString]]]; 50 | 51 | NSURL *launchURL = [request urlToLaunchSumupMerchantApp]; 52 | NSLog(@"request: %@ :%@", request, launchURL); 53 | 54 | if (!launchURL) { 55 | [self.textView setText:@"Failed to create URL. Missing mandatory parameters?"]; 56 | return; 57 | } 58 | 59 | [self.textView setText:[launchURL absoluteString]]; 60 | 61 | if (![request openSumUpMerchantApp]) { 62 | [self.textView setText:[self.textView.text stringByAppendingFormat:@"\nNo app installed to handle URL!"]]; 63 | } 64 | } 65 | 66 | - (NSDecimalNumber *)amountNumber { 67 | if (![self.textFieldAmount.text length]) { 68 | return [NSDecimalNumber zero]; 69 | } 70 | 71 | NSString *decSep = [[NSLocale currentLocale] objectForKey:NSLocaleDecimalSeparator]; 72 | 73 | return [NSDecimalNumber decimalNumberWithString:[self.textFieldAmount.text stringByReplacingOccurrencesOfString:decSep withString:@"."]]; 74 | } 75 | 76 | - (BOOL)textFieldShouldReturn:(UITextField *)textField { 77 | [textField resignFirstResponder]; 78 | return YES; 79 | } 80 | 81 | @end 82 | -------------------------------------------------------------------------------- /SMPPaymentSampleApp/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /SMPPaymentSampleApp/en.lproj/SMPPaymentViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /SMPPaymentSampleApp/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SMPPaymentSampleApp 4 | // 5 | // Created by Lukas Mollidor on 10/31/12. 6 | // Copyright (c) 2012-2015 SumUp. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "SMPPaymentAppDelegate.h" 12 | 13 | int main(int argc, char *argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([SMPPaymentAppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /SMPPaymentSampleApp/resources/icon/Icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumup/sumup-ios-url-scheme/bc48c340a494abad512f7dbb536f224e05b208a7/SMPPaymentSampleApp/resources/icon/Icon-72.png -------------------------------------------------------------------------------- /SMPPaymentSampleApp/resources/icon/Icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumup/sumup-ios-url-scheme/bc48c340a494abad512f7dbb536f224e05b208a7/SMPPaymentSampleApp/resources/icon/Icon-72@2x.png -------------------------------------------------------------------------------- /SMPPaymentSampleApp/resources/icon/Icon-Small-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumup/sumup-ios-url-scheme/bc48c340a494abad512f7dbb536f224e05b208a7/SMPPaymentSampleApp/resources/icon/Icon-Small-50.png -------------------------------------------------------------------------------- /SMPPaymentSampleApp/resources/icon/Icon-Small-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumup/sumup-ios-url-scheme/bc48c340a494abad512f7dbb536f224e05b208a7/SMPPaymentSampleApp/resources/icon/Icon-Small-50@2x.png -------------------------------------------------------------------------------- /SMPPaymentSampleApp/resources/icon/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumup/sumup-ios-url-scheme/bc48c340a494abad512f7dbb536f224e05b208a7/SMPPaymentSampleApp/resources/icon/Icon-Small.png -------------------------------------------------------------------------------- /SMPPaymentSampleApp/resources/icon/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumup/sumup-ios-url-scheme/bc48c340a494abad512f7dbb536f224e05b208a7/SMPPaymentSampleApp/resources/icon/Icon-Small@2x.png -------------------------------------------------------------------------------- /SMPPaymentSampleApp/resources/icon/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumup/sumup-ios-url-scheme/bc48c340a494abad512f7dbb536f224e05b208a7/SMPPaymentSampleApp/resources/icon/Icon.png -------------------------------------------------------------------------------- /SMPPaymentSampleApp/resources/icon/Icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumup/sumup-ios-url-scheme/bc48c340a494abad512f7dbb536f224e05b208a7/SMPPaymentSampleApp/resources/icon/Icon@2x.png --------------------------------------------------------------------------------