- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我正在尝试从卡 token 创建付款在我的 android 程序中,如下链接所示:
我无法使用 Simplify Commerce Android SDK 创建“支付”对象,因此我通过将此行添加到我的 gradle 构建中来包含 java 支付 SDK
compile 'com.simplify:payments-sdk-java:1.3.0'
添加此行后我可以导入“com.simplify.payments”包并创建支付对象,但这次我的 android 构建失败(因为我使用 java sdk?)。
Information:Gradle tasks [:app:assembleDebug]
Warning:Dependency org.apache.httpcomponents:httpclient:4.2.1 is ignored for debug as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
Warning:Dependency org.apache.httpcomponents:httpclient:4.2.1 is ignored for debug as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
Warning:Dependency commons-logging:commons-logging:1.1.1 is ignored for debug as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
Warning:Dependency org.apache.httpcomponents:httpclient:4.2.1 is ignored for release as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
Warning:Dependency org.apache.httpcomponents:httpclient:4.2.1 is ignored for release as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
Warning:Dependency commons-logging:commons-logging:1.1.1 is ignored for release as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72220Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42220Library UP-TO-DATE
:app:prepareComSimplifySdkAndroid103Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:processDebugJavaRes UP-TO-DATE
:app:compileDebugJavaWithJavac UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources UP-TO-DATE
:app:preDexDebug UP-TO-DATE
:app:dexDebug
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lorg/hamcrest/Description;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)
Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_60\bin\java.exe'' finished with non-zero exit value 2
Information:BUILD FAILED
如何在我的 android 程序中使用 Simplify Commerce 支付 api?
最佳答案
全面披露:这并没有回答如何在您的应用中包含支付 API 的问题,而是为您指明了使用 Simplify 在您的应用中收款的正确方向。
您绝对不应该尝试在您的 Android 应用程序中使用 payments java sdk。这样做需要您提供您的私有(private) API key ,并且会带来严重的安全问题。请参阅:https://github.com/simplifycom/simplify-android-sample/wiki/Simplify-Android-SDK-Tutorial#process-a-payment
Friendly reminder: DO NOT BUNDLE YOUR PRIVATE KEY WITHIN YOUR APP!
Your private keys are considered sacred and can be used to process payments, issue refunds, and more. A common development mistake is to simply include the Java SDK in an app and use a private key to complete the transaction lifecycle without involving a server. While it may seem like an easy way to integrate payments, distributing your private key in an app leaves it vulnerable through simple reverse engineering. Once compromised, an attacker can use your key to perform almost every operation offered through our APIs. This is bad security practice. In addition, since keys can be revoked from the API Keys page, they are also considered volatile. If a private key is revoked, any app using it will be broken until an update is released with a new key. The bottom line is this: Don't do it. We will find you. :)
好消息是 Simplify 提供了一个 Android SDK,您可以使用它在您的应用程序中收集和标记卡信息。只需将其包含在以下行中:
compile 'com.simplify:simplify-android:2.0.3'
引用文档和示例应用程序位于: https://github.com/simplifycom/simplify-android-sample
关于android - 如何在 Android 中使用 Simplify Commerce Payment API?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32770983/
我正在我的网站中实现条纹支付网关 (php)。我想以十进制形式发送订阅金额。例如,我想发送 9.99 但它给了我一个错误,它是一个无效的整数。为什么这不起作用? 最佳答案 发送到 Stripe 的所有
当我们尝试在链式支付中设置次要接收者支付费用时,如果有两个以上的次要接收者,我们会收到以下错误。 Error! 580023 The fee payer SECONDARYONLY must have
我正在使用平衡付款ruby api并意外创建了几个额外的测试市场。虽然 api 公开了一个用于创建测试市场的清晰界面,但我似乎找不到任何方法来删除它,即使没有 api。有人知道删除市场的方法吗? 最佳
新的PayPal Direct Payments API包括对 Recurring Payments 的访问/支持? 我不清楚新的 Direct Payments API 是否提供对所有 API 例程
我正在使用 PayPal API 在我的电子商务系统中处理 PayPal 支付。 1:获取 token v1/oauth2/ token 2:创建支付 v1/付款/付款 3:执行支付 v1/payme
jQuery.payment 期望到期时间为单个值,但 stripe 期望月和年有不同的值。这两个库如何协同工作? 最佳答案 Stripe.card.createToken除了接受原始 HTMLFor
我们使用 Stripe 作为支付网关。 我正在尝试为客户订阅计划。该计划有 30 天的试用期。因此,我们推迟了客户在其个人资料中添加来源(付款方式)详细信息的时间。 然而,当我尝试订阅一个计划时,st
尝试通过 Paypal Reference Transaction API 实现自动支付。 设法让它在沙盒上运行,但我注意到在客户摘要页面上,它将付款称为“预批准付款”。 将其与我使用的启用自动付款的
目前我正在尝试通过 Rest API 实现 PayPal。我已经阅读了文档并编写了一个脚本,该脚本使用 givin 示例 JSJON 对象(来自文档)执行对 Rest API 的所有调用。 不幸的是,
我正在使用 PayPal Standard 处理订单。我将“Paypal Account Optional”功能设置为打开,这样就可以接受没有 Paypal 账户的客户的付款。 OpenCart 是我
我尝试使用 Website Payments Pro 模式从 CiviCRM 建立定期付款。正面测试完美无缺,我看到了创建的付款资料,我收到了 IPN 通知,非常完美。 我在配置文件中启用了负面测试,
按照 https://developer.paypal.com/webapps/developer/docs/integration/web/accept-paypal-payment/ 上的指南进行
是否可以将 Stripe Payment Request 按钮显示为 Google Pay 按钮?目前,它在 iOS 设备上显示为 Apple Pay 按钮。但是当我从 Chrome 打开它时,它看起
当用户下订单时,我们会在 iOS/Android 应用中创建 PaymentIntents(如果重要的话,使用 capture_method=manual)。 一旦 charge.succeeded
我已经在我的 Symfony2.3 项目中安装了这些用于 paypal 集成的包。 “jms/payment-core-bundle”:“1.0.*@dev”"jms/payment-paypal-b
我正在尝试将钱包(Google/Apple Pay)集成到现有的条纹元素页面中。。收到源id后,我将其发送到服务器,并尝试按如下方式更新PaymentIntent:。然而,我得到的消息是“必须将源附加
我正在尝试将钱包(Google/Apple Pay)集成到现有的条纹元素页面中。。收到源id后,我将其发送到服务器,并尝试按如下方式更新PaymentIntent:。然而,我得到的消息是“必须将源附加
我让按钮使用测试数据工作,但有一个表单可以收集金额并使用下拉列表设置标签。我需要在提交之前使用表单数据更新付款请求按钮。 我已初始化按钮,它出现在我的 Android 设备上。当文档准备好时,我调用
我正在尝试实现 Stripe Checkout 以在 Kik 浏览器中接受移动支付,但不幸的是,我在尝试加载 Checkout 时遇到以下错误: Sorry, there was a problem
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于 Stack Overflow 来说是偏离主题的
我是一名优秀的程序员,十分优秀!