简体   繁体   English

以后如何在 Wix 网站上授权/获取 Paypal 付款?

[英]How can I authorize/capture Paypal payments at a later date on Wix website?

I'm using Wix as an e-commerce solution and the way I understand it, I can only add code (not edit current code) to make specific changes to the site.我将 Wix 用作电子商务解决方案,按照我的理解,我只能添加代码(不能编辑当前代码)来对网站进行特定更改。 The one change I want to make is to have the ability to authorize/capture PayPal payments at a later date for all the products I am selling.我想要做的一个改变是能够在以后为我销售的所有产品授权/捕获 PayPal 付款。

I've read through the PayPal authorization/capture documentation here but am still confused for my specific use case considering the only button I have is a "Check Out with Paypal" once customers have added products to their cart as opposed to "Buy Now" or some of the other button options available.我已经在这里阅读了 PayPal 授权/捕获文档 但仍然对我的特定用例感到困惑,因为我唯一的按钮是一旦客户将产品添加到他们的购物车而不是“立即购买”,我唯一的按钮就是“使用 Paypal 结账”或其他一些可用的按钮选项。

Is there a way to easily integrate authorize/capture in this case and if so, can someone help me out with how?在这种情况下,有没有办法轻松集成授权/捕获,如果是这样,有人可以帮我解决吗? Hoping I can make one change no matter how many different products a customer is purchasing that allows me to either capture all or part of the entire purchase amount and void the rest.希望无论客户购买多少种不同的产品,我都可以进行一项更改,以便我可以获取全部或部分购买金额,并将其余部分作废。

I've scoured the internet, but don't feel like anything I've come across is directly applicable.我已经在互联网上搜索过,但不要觉得我遇到的任何事情都可以直接适用。 See here and here .请参阅此处此处 The latter link makes it look insanely easy, but again I think the problem lies in the fact that I'm using Wix and can't directly edit existing code.后一个链接使它看起来非常简单,但我再次认为问题在于我使用 Wix 并且无法直接编辑现有代码。

If anyone can provide directions/code necessary to implement this I'd be extremely grateful.如果有人可以提供实现这一点所需的方向/代码,我将不胜感激。 Thanks so much in advance!非常感谢!

Note: It appears Wix integrates with PayPal Standard and all I need is the "Basic Authorization" capability, NOT "Order Authorizations."注意:Wix 似乎与 PayPal Standard 集成,我需要的只是“基本授权”功能,而不是“订单授权”。

The latter link makes it look insanely easy, but again I think the problem lies in the fact that I'm using Wix and can't directly edit existing code.后一个链接使它看起来非常简单,但我再次认为问题在于我使用 Wix 并且无法直接编辑现有代码。

You've nailed it.你已经搞定了。 It would be that easy, just add the parameter paymentaction=authorization when redirecting to PayPal, but Wix needs to provide a way for this to happen.这么简单,只需在重定向到 PayPal 时添加参数 paymentaction=authorization 即可,但 Wix 需要提供一种方法来实现这一点。

Many shopping carts -- especially those that integrate via an API rather than Payments Standard -- have a checkbox in their settings to toggle on authorization mode vs. immediate capture (sale) mode.许多购物车——尤其是那些通过 API 而不是 Payments Standard 集成的购物车——在它们的设置中有一个复选框,用于在授权模式与立即捕获(销售)模式之间切换。 The reason API-based integrations are much more likely to implement such a setting, is that an API is needed for the shopping cart to be able to capture the authorization at a later point in time.基于 API 的集成更有可能实现这种设置的原因是,购物车需要一个 API,以便能够在稍后的时间点获取授权。 API-less integrations (like payments standard) cannot do the capture themselves (because this requires an API call), and so with standard you'll always need to log into www.paypal.com for the capture later on. API-less 集成(如支付标准)不能自己进行捕获(因为这需要 API 调用),因此使用标准,您将始终需要登录www.paypal.com以进行捕获。

Anyway, there's probably no way forward unless Wix provides you with one.无论如何,除非 Wix 为您提供,否则可能没有出路。

Wix could well be using an API integration rather than the HTML-only Payments Standard, but the problem is the same: the API needs to specify 'authorization' (instead of 'sale'/'capture'), and from their lack of documenting the feature it does not appear Wix has implemented this. Wix 很可能使用 API 集成而不是纯 HTML 支付标准,但问题是一样的:API 需要指定“授权”(而不是“销售”/“捕获”),并且缺少文档没有出现的功能 Wix 已经实现了这一点。

Most shopping cart/platform providers do support authorization and capture, so you could make the feature request to Wix, and/or consider switching providers if it's a must-have.大多数购物车/平台提供商确实支持授权和捕获,因此您可以向 Wix 提出功能请求,和/或考虑切换提供商(如果必须具备)。


On a general note, using authorization and capture adds complexity to payment processing, and the capture is not guaranteed to be successful.一般而言,使用授权和捕获会增加支付处理的复杂性,并且不能保证捕获成功。 You can get a successful authorization and then have the payment fail when you try to capture it (happens in a certain % of cases, when funds are no longer available or the card decides to decline).您可以获得成功的授权,然后在您尝试获取时付款失败(发生在某些情况下,当资金不再可用或卡决定拒绝时)。 So in general, you use immediate sale/capture at checkout time (not authorization) unless you have very specific and well-defined business needs to not be capturing up front (and refunding in the case of exceptions).因此,一般而言,您在结账时使用立即销售/捕获(非授权),除非您有非常具体且明确定义的业务需要不预先捕获(并在异常情况下退款)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM