简体   繁体   English

支付在线服务

[英]Pay online service

I have a database where you can select articles etc, users have an account, it's all in mysql and php (i guess you don't need that code). 我有一个数据库,您可以在其中选择文章等,用户有一个帐户,全部在mysql和php中(我想您不需要该代码)。 What i was wondering was how to write a script that allows users to pay online for the articles they selected? 我想知道的是如何编写一个脚本,使用户可以在线为其选择的文章付款? It doesn't need to be any code, just ideas / hints / tips / ... (that are doable in PHP or something similar) Thanks in advance!! 它不需要任何代码,仅是想法/提示/技巧/ ...(在PHP或类似的版本中可用),谢谢! -Samuel -Samuel

You have to do that through a service that collects money, such as paypal or a bank. 您必须通过诸如Paypal或银行之类的收款服务来做到这一点。

You make an account there, and they will provide the necessary files and documentation to do that. 您在那里注册一个帐户,他们将提供必要的文件和文档。

Usually it will mean 通常这意味着

  1. when the user wants to pay, you redirect them to a specific page in the payment site 当用户想要付款时,您可以将他们重定向到付款站点中的特定页面
  2. you host an IPN (Instant Payment Notification) file where that site will contact you when he receives a payment 您托管一个IPN(即时付款通知)文件,该网站将在您收到付款后与您联系

I've done some paypal coding before and it is easy to set up, suggest that you should search for payment gateway that, i've work with ipay88.com before its one of payment gateway at my place. 我之前已经做过一些Paypal编码,而且设置起来很容易,建议您应该搜索付款网关,在我使用ipay88.com之前,我已经使用过ipay88.com。

Usually if you setup the paypal for the business transaction you will need to register as merchant account and they will charge you per transaction, same goes with payment gateway. 通常,如果您为业务交易设置了贝宝,则需要注册为商家帐户,并且他们将对每笔交易向您收费,付款网关也是如此。

It is a very broad question. 这是一个非常广泛的问题。 But basically you need to integrate some payment module, such as paypal. 但基本上,您需要集成一些付款模块,例如贝宝。 Look at their website , where there are tutorials on how to get it working with php. 查看他们的网站 ,那里有关于如何使其与php一起使用的教程。

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

相关问题 apple pay in payfrort return 执行服务失败? - apple pay in payfrort return Failed to execute service? 在线服务会反复加载我的PHP脚本吗? - Online service that loads my PHP script repeatedly? Quickbook在线服务提供500个内部服务器 - Quickbook online service gives 500 internal server 在线交易如何通知应用程序或服务提供商品或服务? - How do online transactions notify the application or service to give the good or service? 如何在线使用adfs IDP服务器测试我的simplesamlphp SP服务? - how to test my simplesamlphp SP service with an adfs IDP server online? 通过php cURL和json通过IP使用在线服务获取用户位置 - Get user location by ip used online service with php cURL and json 如何通过CDN在线服务验证php脚本的真实性? - How to verify php script authenticity via CDN online service? 使用PHP检测Web服务是否在线/离线的最佳方法 - Best way of detecting if a web service is online / offline with PHP 从Android应用程序在线访问MySQL哪个更好? RESTful Web服务还是异步任务? - Which one is better to access the MySQL in online from Android application? Either RESTful web service or Async Task? 如何生成安全且唯一的令牌以用于在线票务服务? - How can I generate a secure and unique token to use in an online ticket service?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM