admin管理员组文章数量:1420197
I'm looking for some advice in regards to how I approach dealing with a redirected URL with params.
I have a client, let's say Client #A.
They have a WordPress website we previously created with WooCommerce, custom theme, Realex integration (SkyVerge). They sell delivery/packing materials.
Third Party Service #B provides quoting service for users on their #B website for users. (For removals quotes). I can't control what they do as they are upstream (I'm not sure if this is the right terminology?).
So the user is on TPS#B's website entering their details, they hit 'finalise' and TPS#B provide a URL redirect from their website loaded with parameters like so:
;first_name=John&last_name=Doe&total=465.6
The intention is once they get redirected to client website #A, given the URL (as above) I grab the values, (possibly populating a form) user reviews the price, clicks buy now. They then get sent to Realex to do the hosted payment much like WooCommerce already does etc. *1 *2
My main query is around the first stages. I can't shake the nagging feeling there is a better way to do this... Have I got the approach correct? To be honest, I'm a bit confused, maybe overthinking it. Is creating a payment page with some kind of form that pulls from the URL even a good idea? I know an API would be better but they don't offer that option.
I considered using WooCommerce somewhere within this process but the problem is the price is going to vary from user to user. Therefore I don't think it's possible to 'create a product' every time. (I mean maybe it would be a good idea since I could use the already existing Realex integration.)
I'd appreciate any help even if it's just guidance on how to get started or if there are any thoughts on the best way to handle this situation.
Points raised
*(1. Why doesn't TPS#B just forward to Realex? I don't think that's possible, this is why they have given me the URL.
*(2. I'm going to have to create a payment gateway for this along with some kind of rudimentary order system (a bit like WooCommerce but more basic). I understand this part as I can see the theory behind it.
本文标签:
版权声明:本文标题:php - Require advice handling a URL redirect from a Third Party. URL Params need to populate and then forward to payment 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745325549a2653575.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论