问题标签 [klarna]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
stripe-payments - 使用 Klarna 源进行条带支付
我们使用带有 Klarna 的 Stripe 作为源。这在开发中工作得很好,但我生产源创建失败:
此付款方式 (klarna) 未为您的帐户激活。您只能创建 testmode klarna 付款方式。
好吧,如果我转到我们的仪表板 > 设置 > 付款,我会看到 Klarna (Beta) 对我们的帐户处于活动状态。
我与 2 个不同的支持人员进行了交谈,他们无法提供帮助并将其转发给可以提供帮助的人,但我没有听到任何消息。
有人有想法吗?
javascript - 如何整合 Klarna 3 pay 分期付款方式?
我想在我的网站中添加Klarna 3 pay 分期付款方式。像这样:
我正在使用此文档:https ://developers.klarna.com/api/#checkout-api-create-a-new-order
这是我的请求代码:
目前我是这样的:
javascript - 克拉纳支付
我尝试为 opencart 集成 klarna 付款。
我从 klarna 获得了一个 client_token,因此显示了 iframe。
下一步是授权测试数据。
不幸的是,我得到 { "show_form": false, "approved": false }
结果回来了。
我发送以下测试脚本:
它应该可以工作,因为它来自 klarna 的官方测试数据。有人知道,为什么它不起作用?
问候
java - 克拉纳颤抖着
我正在尝试在 Flutter 中为应用程序实施 Klarna 支付解决方案。问题是我不知道如何在 Flutter 中运行 Kotlin 或 Java 代码。这是可行的还是我必须找到另一个解决方案?
科特林代码:
Java代码:
json - 如何在 Klarna 付款方式中集成 PayPal
我找不到任何东西,如何在 Klarna 应用程序上实施 PayPal 付款选项,在他们的网站上他们有 PayPal 按钮,但是当我运行结帐沙箱 api 时,我没有得到按钮......(https ://api.playground.klarna.com/checkout/v3/ )这是我对https://api.playground.klarna.com/checkout/v3/orders的发布请求
还是实时环境中的贝宝自动启用或可以在仪表板中启用?
php - Add PayPal and BACS to Klarna Checkout
I'm trying to add PayPal and BACS (Brank Transfer) to my Klarna Checkout for WooCommerce.
I found the example Plugin from Klarna (https://github.com/krokedil/klarna-checkout-external-payment-method-for-woocommerce/blob/master/klarna-checkout-external-payment-method-for-woocommerce.php)
This works perfectly but when I try to change the code to display and use the BACS payment, I only get the BACS option displayed and not PayPal and BACS.
This is the example Code for PayPal provided by krokedil (I have cut out the code for the Plugin settings in the backend):
I came up with the following code which will indeed display the BACS Payment Method and allow the payment. However the PayPal Payment Option disappers as soon, as I enable my code.
I don't know how I can register both payment methods simultaneously. I think it has something to do with the array not being registered.
I found this notice on the krokedik documentation but don't know how I can implement it:
"Each defined external payment method sent in the request to Klarna should be added as an array as described in the documentation here: https://developers.klarna.com/api/#checkout-api__create-a-new-order__external_payment_methods."
Any help would be much appreciated!
php - woocommerce_order_item_name 过滤器挂钩中无法识别自定义分类法
我在 WooCommerce 网站上遇到了一些不一致的行为。
我为产品帖子类型添加了一个自定义分类,称为“product_brand”:
我想在“新订单”电子邮件消息中的每个产品名称前显示选定的 product_brand 术语。
受在 Woocommerce 订单和电子邮件通知应答代码中显示产品品牌和名称的启发,我添加了以下代码:
这在我使用支票付款的暂存站点上运行良好。但是在我使用外部支付网关(Klarna)的实时站点上,找不到分类法。正在taxonomy_exists( 'product_brand' )
回归。false
但是,如果我从订单管理页面手动重新发送“新订单”消息,则会找到分类并成功显示条款。
这可能是什么原因,我该如何解决?
该站点在 WPEngine 上运行。
payment-gateway - 如何加载(多个)定义的 Klarna 付款方式?
我正在构建一种 Klarna Payments 的沙盒集成(使其原则上工作并稍后将逻辑实施到真实商店中)。文档中描述的第一步,会话创建,已经奏效。现在我正在尝试显示 Klarna 小部件。
文档中的示例显示了如何加载一种付款方式(pay_later
/发票)。
我尝试了相同的方法pay_now
,但它不起作用(页面和对象中的消息“付款方式不可用” )。实际上,我希望看到一个具有三种付款方式的表单:、和。{show_form: false}
res
pay_now
pay_later
pay_over_time
我查看了. load()
我的期望是找到一个像payment_method_categories
. 但该方法只有payment_method_category
并且它需要是一个字符串......
如何获得可用和加载的 Klarna 付款方式的定义列表?
可能某些设置位于 Klarna 后端/“控制中心”(Playground)中,或者需要用于使方法可用的 API 调用。如果是这样,需要做什么以及如何做到这一点?