用于授权电子商务网站,在线零售商或传统企业付款的服务。
3D安全支付认证问题 - Cybersource Payment - 需要帮助
我最近将 Cybersource 集成到我的系统中,并遇到了 3D Secure 支付身份验证问题。以下是情况的简要概述: 初始测试: 在 Cyberso 中添加了测试卡...
PayUCheckout pro [PayuMoney] 在 Android 应用程序中调用 onError 方法
我从网站上获取了MerchantID和SaltKey之后就开始使用了 在构建 gradle 中实现“in.payu:payu-checkout-pro:2.0.23”。 但响应是 E/ErrorMessage: Value 我从网站上得到了MerchantID和SaltKey之后就开始使用了 在构建gradle中实现'in.payu:payu-checkout-pro:2.0.23'。 但是 Response 是 E/ErrorMessage: Value 请帮我解决一下 btnPay.setOnClickListener { val additionalParamsMap: HashMap<String, Any?> = HashMap() additionalParamsMap[PayUCheckoutProConstants.CP_UDF1] = "udf1" additionalParamsMap[PayUCheckoutProConstants.CP_UDF2] = "udf2" additionalParamsMap[PayUCheckoutProConstants.CP_UDF3] = "udf3" additionalParamsMap[PayUCheckoutProConstants.CP_UDF4] = "udf4" additionalParamsMap[PayUCheckoutProConstants.CP_UDF5] = "udf5" additionalParamsMap[PayUCheckoutProConstants.SODEXO_SOURCE_ID] = "srcid123" val payUPaymentParams = PayUPaymentParams.Builder() .setAmount("10") .setIsProduction(true) .setKey("Key") .setProductInfo("Macbook Pro") .setPhone("9874563210") .setTransactionId(System.currentTimeMillis().toString()) .setFirstName("firstname") .setEmail("email") .setSurl("https://payuresponse.firebaseapp.com/success") .setFurl("https://payuresponse.firebaseapp.com/failure") .setUserCredential("key:email") .setAdditionalParams(additionalParamsMap) .build() PayUCheckoutPro.open( this, payUPaymentParams, object : PayUCheckoutProListener { override fun onPaymentSuccess(response: Any) { response as HashMap<*, *> val payUResponse = response[PayUCheckoutProConstants.CP_PAYU_RESPONSE] val merchantResponse = response[PayUCheckoutProConstants.CP_MERCHANT_RESPONSE] } override fun onPaymentFailure(response: Any) { response as HashMap<*, *> val payUResponse = response[PayUCheckoutProConstants.CP_PAYU_RESPONSE] val merchantResponse = response[PayUCheckoutProConstants.CP_MERCHANT_RESPONSE] } override fun onPaymentCancel(isTxnInitiated: Boolean) { } override fun onError(errorResponse: ErrorResponse) { val errorMessage: String if (errorResponse != null && errorResponse.errorMessage != null && errorResponse.errorMessage!!.isNotEmpty() ) errorMessage = errorResponse.errorMessage!! else errorMessage = "Error Message" Log.e("ErrorMessage",""+errorResponse.errorMessage); } override fun setWebViewProperties(webView: WebView?, bank: Any?) { //For setting webview properties, if any. // Check Customized Integration section for more details on this } override fun generateHash( valueMap: HashMap<String, String?>, hashGenerationListener: PayUHashGenerationListener ) { if (valueMap.containsKey(CP_HASH_STRING) && valueMap.containsKey(CP_HASH_NAME) ) { val hashData = valueMap[CP_HASH_STRING] val hashName = valueMap[CP_HASH_NAME] val hashString: String? = HashGenerationUtils.generateHashFromSDK( hashData.toString(), "Saltkey" ) //Do not generate hash from local, // it needs to be calculated from server side only. Here, // hashString contains hash created from your server side. val hash: String? = hashString if (!TextUtils.isEmpty(hash)) { val dataMap: HashMap<String, String?> = HashMap() dataMap[hashName!!] = hash!! hashGenerationListener.onHashGenerated(dataMap) } } } }) } 在本地生成哈希值,我也尝试在服务器中生成...... 网站中给出的测试值不再有效使用我通过发送投诉邮件获得的这些值 key -> 'gtKFFx' merchantSalt -> '4R38IvwiV57FwVpsgOvTXBdLE4tHUXFW' 如果您想了解更多相关问题 https://medium.com/@karthidreamr/payu-integration-in-react-native-with-checkoutpro-sdk-f70d2d1fd790
WooCommerce - 将元数据添加到 Stripe Payment
我正在尝试使用以下代码在结账后/结帐期间将税务元数据添加到 Stripe 支付插件: /* * 将“计费公司”值添加到 Stripe 元数据中 */ 功能
通常,WooCommerce 应自动完成虚拟产品的订单。但事实并非如此,这是一个真正的问题,甚至是一个 BUG 之类的。 所以此时你可以找到一些有用的东西(但不是真的
我需要根据用户角色和产品类别在 WooCommerce 中自定义货到付款 (COD)。 要求: 默认情况下 COD 是隐藏的 当购物车中的产品属于某个特定产品时,COD 可见
如何将我用 Visual basic 构建的 POS 连接到 EFTPOS 机器以接受卡付款
我开发了一个销售点软件,需要帮助将其连接到 EFTPOS(销售点电子资金转账)读卡器机器,特别是 Ingenico Move5000 型号。
这是呈现贝宝智能按钮的代码: paypal.Buttons().render('body');</s...</desc> <question vote="0"> <p>这是呈现贝宝智能按钮的代码:</p> <pre><code><script src="https://www.paypal.com/sdk/js?client-id=test"></script> <script>paypal.Buttons().render('body');</script> </code></pre> <p>但是我想通过代码来渲染它们,所以我尝试这样做:</p> <pre><code>document.body.innerHTML='<script src="https://www.paypal.com/sdk/js?client-id=test"></script>'; paypal.Buttons().render('body'); </code></pre> <p>但是没有成功,我该如何实现呢?</p> </question> <answer tick="true" vote="2"> <p>向 DOM 添加脚本元素将导致它们异步加载,无法及时供紧随其后的代码使用它们。您需要对脚本的 <pre><code>onload</code></pre> 事件使用回调函数。这是一个执行此操作的示例辅助函数。</p> <pre><code>//Helper function function loadAsync(url, callback) { var s = document.createElement('script'); s.setAttribute('src', url); s.onload = callback; document.head.insertBefore(s, document.head.firstElementChild); } // Usage -- callback is inlined here, but could be a named function loadAsync('https://www.paypal.com/sdk/js?client-id=test&currency=USD', function() { paypal.Buttons({ /* ... createOrder, onApprove ... */ }).render('body'); }); </code></pre> </answer> </body></html>
我正在尝试让客户设置 AXEPTA 支付系统,但它不起作用,我不明白问题出在哪里。这是文档 这是我的代码,其中包含测试数据,可以...
Vue 3 Uncaught ReferenceError:[function] 未定义
我正在尝试根据其文档(西班牙语)在我的 Vue 3 应用程序中实现秘鲁的 Culqi 支付网关。 我为我的测试创建了一个非常简单的组件: </desc> <question vote="0"> <p>我正在尝试根据其<a href="https://docs.culqi.com/es/documentacion/checkout/v4/culqi-checkout/#paso-4-mostrar-el-culqi-checkout" rel="nofollow noreferrer">文档</a>(西班牙语)在我的 Vue 3 应用程序中实现秘鲁的 Culqi 支付网关。</p> <p>我为我的测试创建了一个非常简单的组件:</p> <pre><code><script setup> import { onBeforeMount } from 'vue'; onBeforeMount(() => { console.log("before mount"); let culqi_script = document.createElement('script'); culqi_script.setAttribute('src', "https://checkout.culqi.com/js/v4"); document.head.appendChild(culqi_script); }) function openCulqi(e) { e.preventDefault(); Culqi.publicKey = "pk_test_L7C8H665X8yqvF4P"; Culqi.settings({ title: 'Prueba', currency: 'USD', amount: 100, }) Culqi.open(); } function culqi() { if (Culqi.token) { const token = Culqi.token.id; console.log("Se ha creado un Token: ", token); } else if (Culqi.order) { const order = Culqi.order; console.log("Se ha creado el objeto Order: ", order); } else { console.log("Error : ", Culqi.error); } } </script> <template> <h1>Culqi</h1> <button @click="openCulqi">Pagar</button> </template> </code></pre> <p>单击按钮时,支付网关模式将打开。</p> <p>您可以使用以下测试卡来模拟付款</p> <blockquote> <p>卡号:4111 1111 1111 1111 有效期:09/25 CVV:123</p> </blockquote> <p>支付网关应该向 culqi 函数返回一个令牌,但我收到以下错误</p> <blockquote> <p>Vue 3 Uncaught ReferenceError:culqi 未定义</p> </blockquote> <p>我尝试将 <strong>culqi</strong> 函数直接放在我的 index.html 文档中的脚本标签内,它工作正常,没有问题。但是,我需要它在我的组件中来处理付款。</p> <p>我的印象是 culqi 函数在全局范围内不可用,所以它似乎没有定义。</p> <p>我能做什么?</p> </question> <answer tick="true" vote="0"> <p>正如 <strong>Jaromanda X</strong> 在他的评论中建议的那样,您可以通过将函数声明为 <strong>window.culqi = function</strong> 来使该函数成为全局函数。</p> <p>此外,我必须添加一个方法来关闭模式。这个应该自动发生的功能也被破坏了,因为 Culqi 对象也不是全局的。</p> <p>最终代码如下所示:</p> <pre><code><script setup> import { onBeforeMount } from 'vue'; onBeforeMount(() => { console.log("before mount"); let culqi_script = document.createElement("script"); culqi_script.setAttribute("src", "https://checkout.culqi.com/js/v4"); document.head.appendChild(culqi_script); }); function openCulqi(e) { e.preventDefault(); Culqi.publicKey = "pk_test_L7C8H665X8yqvF4P"; Culqi.settings({ title: 'Prueba', currency: 'USD', amount: 100, }) Culqi.open(); } window.culqi = function () { console.log("culqi function"); if (Culqi.token) { // ¡Objeto Token creado exitosamente! const token = Culqi.token.id; console.log("Se ha creado un Token: ", token); //En esta linea de codigo debemos enviar el "Culqi.token.id" //hacia tu servidor con Ajax window.Culqi.close(); } else if (Culqi.order) { // ¡Objeto Order creado exitosamente! const order = Culqi.order; console.log("Se ha creado el objeto Order: ", order); window.Culqi.close(); } else { // Mostramos JSON de objeto error en consola console.log("Error : ", Culqi.error); window.Culqi.close(); } } </script> <template> <h1>Culqi</h1> <!-- <p>Token= {{ culqiToken }}</p> --> <button @click="openCulqi">Pagar</button> </template> </code></pre> <p>卡洛斯</p> </answer> </body></html>
我想将 Dwolla Payment 集成到我的应用程序(一个市场应用程序)中。本来打算整合Braintree,但是需要等app开发完成后才能审核通过(然后才提交...
如何从$_POST['加密数据']获取以下数据 加密卡号 到期月份 到期年份 加密安全码 我传递了一个输入“加密数据”,但我想要 加密卡N...
带订阅功能的 Paypal 定制信用卡表格 - NEXTJS
我已使用以下代码成功使用nodeJS创建了订阅: const createSubscription = async () => { const accessToken = 等待 getAccessToken(); const 响应 = 等待 ax...
如果付款失败,我正在尝试将用户从年度降级为季度。 这将更新订阅并尝试由于按比例分配行为向用户收费(使用新发票), 我的问题...
我有这个特定的场景,我需要一些关于如何实现它的帮助: Stripe 已经集成到我的系统中,并且我有一些活跃的 Stripe 订阅者,他们之前已经支付了年费
生成token和session id后,无法使用token。 发生下面提到的错误。 E/ConfigRequestHandler(19184): onError : {"message":"令牌不存在","...
如何在 payment_intent.succeeded 中查看条带创建会话详细信息?
借助此功能,我正在创建条带结帐会话,该会话将为我提供付款网址。 我在会话中传递 client_reference_id = sender_id 我怎样才能在我的付款意图中得到这个
Ingenico .net SDK 集成 - 进行任何 API 调用时出现未经授权和连接关闭异常
我是 ingenico 支付集成的新手。我创建了新的 Sandbox 帐户并将 SDK nuget 安装到控制台应用程序中。 我正在尝试下面的api, 获取 https://{域名}/v1/{merchantId}/
我正在尝试向我的网站添加 PayPal 付款功能。目前,我正在使用react-paypal-js 和 PayPal API v2 中的 PayPalButtons 我正在尝试将 PayPal 付款功能添加到我的w...
为什么我在 WordPress WooCommerce 商店的结账页面上看不到我的自定义支付网关插件作为支付选项?
我正在尝试创建一个新的自定义支付网关,它应该相当简单,但即使剥离了整个插件,我仍然无法让我的支付选项显示为...
我的测试应用程序工作得很好,但在生产过程中我的控制台显示错误:“找不到 api 映射”,我认为这是由于错误的 prod_URL 造成的。 任何人都可以...