PHP   发布时间:2022-04-04  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了ZenCart类库-payment.php解读实现原理大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

本篇解读includes/classes/payment.PHP

 


关于具体实现模块的翻译

__construct

Constructor--构造器


函数--update_status()

Calculate zone matches and flag setTings to determine whether this module should display to customers or not

计算区域匹配标记设置以确定此模块是否应显示给客户


函数--javascript_validation()

JS validation which does error-checking of data-entry if this module is SELEcted for use (number, owner Lengths)

JS验证,如果选择使用此模块,则将对数据输入进行错误检查(数字,所有者长度)


函数--SELEction()

Display Credit Card Information Submission Fields on the checkout Payment Page

在结帐付款页面checkout Payment Page 上显示信用卡信息提交字段


函数--pre_confirmation_check()

Evaluates the Credit Card Type for acceptance and the validity of the Credit Card number & Expiration Date

评估可接受的信用卡类型 以及信用卡号 和有效期的有效性 


函数--confirmation()

Display Credit Card Information on the checkout Confirmation Page

在结帐确认页面显示信用卡信息

函数和提交逻辑 好像没有关系


函数--process_button()

Build the data and actions to process when the "Submit" button is pressed on the order-confirmation screen.
This sends the data to the payment gateway for processing.
(these are hidden fields on the checkout confirmation pagE)

建立在订单确认屏幕上按下“提交”按钮时要处理的数据和操作
这会将数据发送到支付网关进行处理。
(这些是结帐确认页面上的隐藏字段)


函数before_process()

Store the CC info to the order and process any results that come BACk from the payment gateway

抄送信息存储到订单中,并处理从付款网关返回的所有结果


after_process()

Post-processing activities

Post-process activities. updates the order-status history data with the auth code from the transaction.

Add receipt and transaction id to order-status-history (order comments)

后处理活动

后处理活动。 使用交易中的验证码更新订单状态历史记录数据。


check()

check to see whether module is installed

检查是否安装了模块


install()

Install the payment module and its configuration setTings

安装支付模块及其配置设置


remove() 

删除模块及其所有设置


keys()

Internal list of configuration keys used for configuration of the module

用于配置模块的配置密钥的内部列表


 

大佬总结

以上是大佬教程为你收集整理的ZenCart类库-payment.php解读实现原理全部内容,希望文章能够帮你解决ZenCart类库-payment.php解读实现原理所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: