http://dawngregg.com/news/2010/02/on-line-payment-mechanisms.html

本文介绍了在线支付机制,包括支付网关的作用及运作流程,并对比了商户支付服务和个人支付服务的区别,帮助创业者理解如何选择合适的在线支付方案。

EntrepreneurIt

Web (and other IT) resources for entrepreneurs

BLOG HOME    DawnGregg.com    Subscribe

Monday, February 22, 2010

On-line Payment Mechanisms

Frequently online businesses want to be able to collect payments over the Internet. This is usually accomplished through some sort of Payment Gateway, which is is an e-commerce service that authorizes payments for e-businesses and online retailers. 
  • It is the equivalent of a physical POS (Point-of-sale) terminal located in most retail outlets.
  • Payment gateways encrypt sensitive information, such as credit card numbers, to ensure that information passes securely between the customer and the merchant.
Payment gateways encrypt information handled through SSL. This reduces the opportunity for fraud, and adds security to the transaction process. Gateways communicate with a variety of entities, including: 
  • The customer
  • The merchant (through their website)
  • Credit Card companies (by verifying information)
  • Internet Merchant accounts that relay order information from the gateway to the merchant's bank account.
There are hundreds of online payment gateway providers that allow you to process commercial transactions over the Web without compromising credit card numbers or other confidential information, they can be grouped into two different groups: 
  • Merchant Payment Services
  • Personal Payment Services
The advantage of using most payment gateways is that you are not responsible for storing your customer's credit card numbers.

Merchant Payment Services

Merchant Payment Gateways use specialized software on the merchant's server to provide for secure payments across the Internet.  
There are numerous Merchant Payment Gateway providers: 
  • VeriSign Payment Services
  • Authorize.net
For you to use most payments via many merchant payment services you must:  
  1. Get an Internet approved merchant account from an affiliated merchant bank. 
    • An Internet merchant account is configured to allow you to accept "card not present" transactions which are specifically designated as originating through the Internet.
  2. Select (or create) code that will be installed on your server that allows you to take payments on your website. 
    • Buy Now Buttons that send payments directly to the Merchant Payment Service
    • Select a pre built shopping cart that automatically connects your Web site to the payment gateway and to a database on your server, allowing you to accept payments immediately and write orders and other customer information to your database.
  3. Register with with the merchant payment gateway provider: The online registration guides you through the process of setting up your web page to process payments. 
How the Merchant Payment Gateway works: 
  • Step 1: The merchant submits a credit card transaction to the Merchant Payment Gateway on behalf of a customer via secure Web site connection, retail store, MOTO center or wireless device (using the buy now buttons or shopping cart provided by the merchant payment service provider).
  • Step 2: The Merchant Payment Gateway receives the secure transaction information and passes it via a secure connection to the Merchant Bank's Processor.
  • Step 3: The Merchant Bank's Processor submits the transaction to the Credit Card Network (a system of financial entities that communicate to manage the processing, clearing, and settlement of credit card transactions).
  • Step 4: The Credit Card Network routes the transaction to the Customer's Credit Card Issuing Bank.
  • Step 5: The Customer's Credit Card Issuing Bank approves or declines the transaction based on the customer's available funds and passes the transaction results back to the Credit Card Network.
  • Step 6: The Credit Card Network relays the transaction results to the Merchant Bank's Processor.
  • Step 7: The Merchant Bank's Processor relays the transaction results to the Merchant Payment Gateway.
  • Step 8: The Merchant Payment Gateway stores the transaction results and sends them to the customer and/or the merchant. This step completes the authorization process – all in about three seconds or less!
  • Step 9: The Customer's Credit Card Issuing Bank sends the appropriate funds for the transaction to the Credit Card Network, which passes the funds to the Merchant's Bank. The bank then deposits the funds into the merchant's bank account. This step is known as the settlement process and typically the transaction funds are deposited into your primary bank account within two to four business days.
Advantages:  merchant payment services is that it provides the merchant with a fully functional, externally managed payment processing system that allows:  
  • Risk Management – Sensitive data is stored in the payment service data center, never on your computer.
  • Accept a Variety of Payments – Most merchant services will allow you to accept all major credit cards, eCheck.Net (electronic checks from bank accounts), gift cards, and signature debit cards.
  • Manage Your Transactions – Most merchant services provide a Merchant Interface which will allow you to to monitor and control payments through your Web site.
  • Prevent Fraud – Many tools can help to identify suspicious transactions using fraud tools.
  • Receive Payments Quickly – Your funds are automatically deposited into your merchant bank account within days.
  • Free Help – Most services provide live technical and account support to merchants, as well as access to online documentation and user guides
  • While you have access to all transaction-critical information, VeriSign protects credit card data with the highest level of security, so you never have to worry about compromising your customer's sensitive credit card data.
Disadvantages: Setting up a merchant account generally requires you to pay set-up fees, monthly fees and per transaction fees which may not be cost effective for new ventures with small volumes or for small purchases, such as "pay per play" on-line video games: 
  • Setup Fee: $99.00
  • Monthly Gateway Fee: $20.00
  • Per-Transaction Fee: $0.10

Personal Payment Services

PayPal, Amazon Payments & Google Payments enables any individual or business with an email address to securely, easily and quickly send and receive payments online. 
Personal payment services cater to small businesses that do not want to set-up their own online payment mechanisms.
Personal payment services cater has a number of options that allows users to quickly set-up online payment mechanisms on their Web sites: 
  • Request Money  just enter the recipient's email address and the amount you are requesting. The recipient gets an email and instructions on how to pay you using PayPal at www.paypal.com.
  • Buy Now Buttons Buy Now Buttons or Pay now buttons are a low-cost way for you to accept credit card and bank account payments, and can be fully integrated with your website in a few easy steps.
  • Subscriptions allows you to set-up subscriptions for recurring payments from customers.
On PayPal:
  • When a buyer clicks the Buy Now button, he will be taken to a secure PayPal payment page, where he can log in to an existing PayPal account or sign up for a new one, and quickly complete the purchase.


 
If you dynamically generate portions of your site, you can populate your Buy Now buttons dynamically and save time by updating the variables with information from your database. To use the button above for a different item, you would only need to edit two variables: item_name, and amount.


PayPal Shopping Cart: When you use PayPal's free Shopping Cart on your website, your customers can purchase multiple items with a single payment, browse your entire selection, and view a consolidated list of all their items before purchasing. The PayPal Shopping Cart is a low-cost way for you to accept credit card and bank account payments, and can be fully integrated with your website in a few easy steps.


 
When a buyer clicks the "Add to Cart" button, a new window will appear listing the contents of the buyer's PayPal Shopping Cart, including the item just added. To make the purchase, the buyer clicks "Checkout" from this window. 


Personal payment services charge fees based on the type of account you set-up and how much you sell.  Currently the fees for PayPal, Amazon Payments and Google Checkout are the same and are paid per transaction:
  
  Premier/Business Account
Open an AccountFree
Send MoneyFree
Withdraw FundsFree for US bank accounts
Add FundsFree
Receive Funds2.2% + $0.30 USD to 
2.9% + $0.30 USD
Multiple Currency TransactionsExchange rate includes a 2.5% fee*

Advantages
: The advantages of personal payment services is that they are lower cost for small payment volumes and they are very easy to set up.

Disadvantages
: The customer completes the transaction on the payment service website - which can look less professional than having your own integrated payment mechanism.

Whatever payment service you choose, it is your responsibility as an Internet merchant to use a reputable payment service that will handle credit card information with care, minimizing the likelihood that information for your customers will be lost, stolen or misused in any way.

Labels: paymentswebsite tips

0 Comments:

Post a Comment

 

AI 代码审查Review工具 是一个旨在自动化代码审查流程的工具。它通过集成版本控制系统(如 GitHub 和 GitLab)的 Webhook,利用大型语言模型(LLM)对代码变更进行分析,并将审查意见反馈到相应的 Pull Request 或 Merge Request 中。此外,它还支持将审查结果通知到企业微信等通讯工具。 一个基于 LLM 的自动化代码审查助手。通过 GitHub/GitLab Webhook 监听 PR/MR 变更,调用 AI 分析代码,并将审查意见自动评论到 PR/MR,同时支持多种通知渠道。 主要功能 多平台支持: 集成 GitHub 和 GitLab Webhook,监听 Pull Request / Merge Request 事件。 智能审查模式: 详细审查 (/github_webhook, /gitlab_webhook): AI 对每个变更文件进行分析,旨在找出具体问题。审查意见会以结构化的形式(例如,定位到特定代码行、问题分类、严重程度、分析和建议)逐条评论到 PR/MR。AI 模型会输出 JSON 格式的分析结果,系统再将其转换为多条独立的评论。 通用审查 (/github_webhook_general, /gitlab_webhook_general): AI 对每个变更文件进行整体性分析,并为每个文件生成一个 Markdown 格式的总结性评论。 自动化流程: 自动将 AI 审查意见(详细模式下为多条,通用模式下为每个文件一条)发布到 PR/MR。 在所有文件审查完毕后,自动在 PR/MR 中发布一条总结性评论。 即便 AI 未发现任何值得报告的问题,也会发布相应的友好提示和总结评论。 异步处理审查任务,快速响应 Webhook。 通过 Redis 防止对同一 Commit 的重复审查。 灵活配置: 通过环境变量设置基
【直流微电网】径向直流微电网的状态空间建模与线性化:一种耦合DC-DC变换器状态空间平均模型的方法 (Matlab代码实现)内容概要:本文介绍了径向直流微电网的状态空间建模与线性化方法,重点提出了一种基于耦合DC-DC变换器的状态空间平均模型的建模策略。该方法通过数学建模手段对直流微电网系统进行精确的状态空间描述,并对其进行线性化处理,以便于系统稳定性分析与控制器设计。文中结合Matlab代码实现,展示了建模与仿真过程,有助于研究人员理解和复现相关技术,推动直流微电网系统的动态性能研究与工程应用。; 适合人群:具备电力电子、电力系统或自动化等相关背景,熟悉Matlab/Simulink仿真工具,从事新能源、微电网或智能电网研究的研究生、科研人员及工程技术人员。; 使用场景及目标:①掌握直流微电网的动态建模方法;②学习DC-DC变换器在耦合条件下的状态空间平均建模技巧;③实现系统的线性化分析并支持后续控制器设计(如电压稳定控制、功率分配等);④为科研论文撰写、项目仿真验证提供技术支持与代码参考。; 阅读建议:建议读者结合Matlab代码逐步实践建模流程,重点关注状态变量选取、平均化处理和线性化推导过程,同时可扩展应用于更复杂的直流微电网拓扑结构中,提升系统分析与设计能力。
内容概要:本文介绍了基于物PINN驱动的三维声波波动方程求解(Matlab代码实现)理信息神经网络(PINN)求解三维声波波动方程的Matlab代码实现方法,展示了如何利用PINN技术在无需大量标注数据的情况下,结合物理定律约束进行偏微分方程的数值求解。该方法将神经网络与物理方程深度融合,适用于复杂波动问题的建模与仿真,并提供了完整的Matlab实现方案,便于科研人员理解和复现。此外,文档还列举了多个相关科研方向和技术服务内容,涵盖智能优化算法、机器学习、信号处理、电力系统等多个领域,突出其在科研仿真中的广泛应用价值。; 适合人群:具备一定数学建模基础和Matlab编程能力的研究生、科研人员及工程技术人员,尤其适合从事计算物理、声学仿真、偏微分方程数值解等相关领域的研究人员; 使用场景及目标:①学习并掌握PINN在求解三维声波波动方程中的应用原理与实现方式;②拓展至其他物理系统的建模与仿真,如电磁场、热传导、流体力学等问题;③为科研项目提供可复用的代码框架和技术支持参考; 阅读建议:建议读者结合文中提供的网盘资源下载完整代码,按照目录顺序逐步学习,重点关注PINN网络结构设计、损失函数构建及物理边界条件的嵌入方法,同时可借鉴其他案例提升综合仿真能力。
你已经成功将测试页面 `test-full-login.html` 上传并访问,现在我们来 **逐步排查和确认是否真正连接成功**。 由于你现在只输入了“正在测试 XMPP 登录...”,但没有给出浏览器控制台的输出或现象描述,我将: 1. ✅ 帮你确认当前流程是否正常 2. 🛠️ 提供完整的调试方法 3. 💡 给出常见问题及解决方案 4. 🔐 安全建议:避免前端暴露密码 --- ## ✅ 一、你应该看到什么? 打开 `http://szrengjing.com/test-full-login.html` 后,页面应显示类似日志: ``` [LOG] 正在测试 XMPP 登录... [LOG] 开始连接... [LOG] 🚀 正在连接到 http://szrengjing.com/http-bind [LOG] ✅ 连接成功! [LOG] 💡 SID: jaat5c7kg [LOG] 💡 JID: testuser@yfw.szrengjing.com/xxx [LOG] 🟢 已发送在线状态 ``` 同时: - 在 OpenFire 管理后台 → **会话(Sessions)** 中能看到该用户上线。 - 浏览器开发者工具(F12)→ Network 标签页中,有多个 `/http-bind` 的 POST 请求。 --- ## 🧰 二、如何调试?—— 必须打开浏览器开发者工具 ### 步骤如下: 1. 打开 Chrome 或 Edge 浏览器 2. 访问:`http://szrengjing.com/test-full-login.html` 3. 按下 `F12` → 切换到 **Console** 和 **Network** 面板 ### ✅ Console 应该看到什么? 如果没有错误,你会看到 `[LOG] ...` 日志。 如果失败,常见报错: | 错误信息 | 含义 | 解决方案 | |--------|------|---------| | `XMLHttpRequest cannot load http://szrengjing.com/http-bind` | CORS 跨域被阻止 | 配置 Nginx 添加 `Access-Control-Allow-Origin *` | | `Connection timeout` | 请求超时 | 检查 Nginx 是否代理 `/http-bind` 到 `7070` | | `Not Connected` | Strophe 未完成握手 | 确保 OpenFire 允许注册或用户存在 | --- ## 🔍 三、检查 Network 请求(关键诊断) 在 **Network** 标签页中: - 查找名为 `/http-bind` 的请求(通常是第一个) - 点击它 → 查看 **Request Headers** 和 **Response** ✅ 成功特征: - 请求方式:`POST` - 请求体包含 XML `<body to="yfw.szrengjing.com" ... />` - 响应体返回带有 `sid="xxx"` 和 `<mechanisms>` 的 XML ❌ 失败特征: - 返回 HTML 页面(如 404、502- 响应为空 - 状态码为 400、403、500 --- ## 🛠️ 四、必须修复的问题(基于你的环境) ### ❌ 问题1:Nginx 是否正确代理了 `/http-bind`? 请再次确认你的 Nginx 配置中有以下内容: ```nginx location /http-bind { proxy_pass http://127.0.0.1:7070/http-bind; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_buffering off; client_max_body_size 10M; # 允许跨域 add_header Access-Control-Allow-Origin "*" always; add_header Access-Control-Allow-Methods "GET, POST, OPTIONS" always; add_header Access-Control-Allow-Headers "Content-Type" always; if ($request_method = 'OPTIONS') { return 200; } } ``` > ⚠️ 修改后必须重启 Nginx: ```bash systemctl reload nginx ``` --- ### ❌ 问题2:PHP DOM 扩展缺失(影响后端脚本) 虽然前端不依赖 PHP,但如果你要用 `Strophe.php` 或写接口同步数据,必须安装 DOM 扩展。 #### 修复命令(宝塔环境通用): ```bash # 查看当前 PHP 版本 php -v # 输出示例:PHP 5.6.9 # 安装 dom 扩展 yum install php-dom -y # 或指定版本 yum install php56w-dom -y ``` 或者进入 **宝塔面板 → 软件商店 → 找到对应 PHP 版本 → 设置 → 安装扩展 → 安装 dom** 验证: ```bash php -m | grep DOM ``` ✅ 输出:`DOM` --- ### ❌ 问题3:账号不存在或密码错误 确保你在 OpenFire 后台创建了这个用户: - JID: `testuser@yfw.szrengjing.com` - 密码: `password123` 路径: > OpenFire 管理后台 → 用户 → 创建用户 > 用户名填 `testuser`,密码设为 `password123` --- ## 🔐 五、重要安全提醒:不要在前端写死真实账号! 你现在测试用的是一个真实账号,但在生产环境中: > ❌ **绝对不能让每个访客都使用同一个账号登录!** > > ❌ **更不能把管理员账号暴露在 JS 中!** ### ✅ 正确做法:动态生成访客临时账号 #### 方案 A:通过后端 API 自动创建 OpenFire 用户(推荐) ```php <?php // create_guest.php header('Content-Type: application/json'); $merchant_id = $_POST['merchant_id'] ?? 'default'; $guest_id = 'guest_' . time() . rand(1000, 9999); $password = 'temp' . rand(100000, 999999); // 使用 OpenFire REST API 创建用户(需启用插件) $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://127.0.0.1:9090/plugins/restapi/v1/users"); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Authorization: Basic ' . base64_encode('admin:your_admin_password'), 'Content-Type: application/json' ]); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([ 'username' => $guest_id, 'password' => $password, 'name' => 'Guest User', 'email' => '' ])); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($http_code == 201) { echo json_encode([ 'jid' => "$guest_id@yfw.szrengjing.com", 'password' => $password, 'status' => 'created' ]); } else { http_response_code(500); echo json_encode(['error' => 'Failed to create user']); } ?> ``` 然后前端调用: ```js fetch('/create_guest.php', { method: 'POST' }) .then(res => res.json()) .then(data => { const conn = new Strophe.Connection("http://szrengjing.com/http-bind"); conn.connect(data.jid, data.password, onConnect); }); ``` > 🔒 这样每个访客都有独立身份,安全可控。 --- ## ✅ 六、最终目标架构图(多商户客服系统) ``` [访客访问网页] ↓ [JS 请求 create_guest.php] ↓ [后端调用 OpenFire REST API 创建临时账号] ↓ [Strophe.js 使用临时 JID 登录] ↓ [自动匹配 merchant_id → kefu_jid] ↓ [发起聊天 → 客服工作台接收] ← 消息通过 BOSH 实时推送 ``` --- ##
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值