简体   繁体   English

PHP + PayPal:通过PayPal进行付款,无需登录屏幕

[英]PHP + PayPal: make payment by PayPal without screen login

I have a new question. 我有一个新问题。 This is my context: 这是我的情况:

I want to make my own API REST, where I can call this method with information about my product as parameters. 我想创建自己的API REST,在这里我可以使用有关我的产品的信息作为参数来调用此方法。 My backend method do the typical purchased process but it doesn't show the PayPal screen which show information about my product, just do the process directly and I receive an answer. 我的后端方法执行典型的购买过程,但不显示用于显示有关我的产品信息的PayPal屏幕,请直接执行该过程,然后我会收到答案。 Is it possible? 可能吗?

I'm using the PayPal SDK for PHP, and looking for at Google I just have gotten that the PayPal page shows, but I'm new in this. 我正在使用适用于PHP的PayPal SDK,并在Google上寻找PayPal页面所显示的内容,但这是我的新手。 Your answer will be so good! 您的答案将非常好!

Yes, this is very possible. 是的,这很有可能。 There are plenty of tutorials online for building your own REST service, and within your service methods you can hit other APIs or do anything you need to do. 在线上有很多教程可用于构建您自己的REST服务,在您的服务方法中,您可以使用其他API或做您需要做的任何事情。

Your service can parse the results from the 3rd party service you're hitting (you could hit 10 different services if you wanted to) and then you would generated your own basic response which includes a collection of all that data back to whatever client hits your service. 您的服务可以解析您所点击的第三方服务的结果(如果您愿意,您可以选择10种不同的服务),然后您将生成自己的基本响应,其中包括所有数据的集合,这些数据将返回给客户点击您的任何对象服务。

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

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