为Bigcommerce创建新的付款方式 [英] Creating new payment method for Bigcommerce

查看:83
本文介绍了为Bigcommerce创建新的付款方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以为Bigcommerce添加新的付款方式.我试图联系他们的支持,但没有任何运气.如果有人熟悉bigcommerce并且知道这是否可行,我将不胜感激.

I would like to know if this is possible to add new payment method for Bigcommerce. I tried to contact their support without any luck. If anyone is familiar with bigcommerce and know if this is possible, i would appreciate any advice.

我已经阅读了他们的API文档,并没有发现任何有用的东西-唯一的方法来获取可用付款方式的列表.

I already read their API docs and didn't found anything useful - only method to obtain list of available payment methods.

我已经尝试注册他们的伴侣.没有任何运气.

I already tried to signup for their partner. Without any luck.

推荐答案

我们之前已经为几个商店完成了此操作,以允许客户通过自己的处理器处理付款.我们实现此目标的方法实质上是通过以下高级步骤进行的:

We've done this before for a couple stores to allow clients to process payments through their own processor. The way we achieved this, is essentially through the following high-level steps:

  1. 允许通过支票付款(或类似的离线方法).我们将用自定义处理器替换它.
  2. 您会注意到,如果您尝试通过Check进行结帐,则BigCommerce会自动为您创建订单,但会将订单状态设置为正在等待付款.提交后,用户将自动发送到谢谢"订单确认页面,该页面同时包含订单ID和一些付款说明(例如将支票发送到的位置).
  3. 技巧就在这里-修改此谢谢您的订单"页面,以提示用户输入她或他的信用卡信息.一个简单的HTML表单就足够了,它可以通过JavaScript执行实际的请求.
  4. 一旦有了用户的信用卡数据,就可以将其发布到您自己的外部服务器上,在该服务器上您可以连接到该服务器并将数据发送到所使用的任何处理器.此外,您应确保将订单ID发送到该程序,以便可以连接到BigCommerce API来加载帐单信息,然后根据处理器的响应将订单状态调整为已批准或已拒绝.最后,您应该向客户发送某种响应,以告知尝试收费的结果.
  1. Allow payments by Check (or similar offline method). We are going to replace this with the custom processor.
  2. You'll notice that if you attempt to checkout via Check, that BigCommerce automatically creates the order for you, but sets the order status to Awaiting Payment. Upon submission the user is automatically sent to a 'Thank You' Order Confirmation page that contains both the Order ID and some payment instructions (such as where to send the check to).
  3. Here's the trick -- Modify this 'Order Thank You' page to prompt the user for her or his credit card information. A simple HTML form will suffice here, performing the actual request via JavaScript.
  4. Once you have the user's credit card data, you can then POST it to your own external server, where you would connect to and send data to whichever processor you are using. Additionally, you should make sure to send the Order ID to this program, so that you can connect to the BigCommerce API to load billing information, and then subsequently adjust the order status to either approved or declined depending on the response from your processor. Finally, you should send back some sort of response to the client to inform of the result of the charge attempt.

简而言之,差不多就是了.无论您使用哪种处理器,与付款处理器进行集成的方式(第4步)都是唯一的.我希望这是有道理的.

That's pretty much it in a nutshell. The way you integrate with the payment processor (step 4) is unique to whichever processor you are using. I hope this makes sense.

尽管基于观点,但我还是无服务器技术的忠实拥护者,建议您研究一下AWS Lambda + AWS API Gateway.这样做的好处是您不必担心创建基础结构或相关的安全性和规模问题.相反,AWS Lambda允许您简单地上传软件,并允许通过HTTP请求将其执行到通过API网关设置的某些定义的端点.Lambda将为您自动扩展,您无需担心系统级别的安全问题-只需担心应用程序级别的安全.这是真正的一劳永逸的设置,同时也是尖端技术.更不用说便宜了!

Although opinion based, I'm a huge fan of serverless technologies, and would suggest looking into AWS Lambda + AWS API Gateway. The benefit here is that you don't need to worry about creating an infrastructure or the associated concerns of security and scale. Rather, AWS Lambda allows you to simply upload your software, and allows it to be executed via an HTTP request to some defined endpoint set through the API Gateway. Lambda will scale automatically for you, and you don't need to worry about system level security concerns - only security at the application level. It's truly a set and forget setup, and a bleeding edge technology. Not to mention dirt cheap!

这篇关于为Bigcommerce创建新的付款方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆