简体   繁体   English

使用PHP和Stripe更新客户信用卡

[英]Updating Customer Credit Card with PHP & Stripe

I am trying to add this script to my Wordpress website that I found on Stripes documentation but I am a little confused as to how to enhance it more to know when the user already has a card on file it needs to update it rather than creating that customer again. 我正在尝试将此脚本添加到我在Stripes文档中找到的Wordpress网站中,但是我对如何增强它感到有些困惑,如何进一步了解用户何时有文件卡需要更新而不是创建它。再次成为客户。

The code I was originally using can be seen here: https://gist.github.com/bateller/154c6e5d1f6e0e53e527 我最初使用的代码可以在这里看到: https : //gist.github.com/bateller/154c6e5d1f6e0e53e527

This is that code with my edits to try and make it update: http://pastebin.com/B3LXZpWq 这是带有我的编辑的代码,以尝试使其更新: http : //pastebin.com/B3LXZpWq

I can't find any information anywhere that seems to make sense to me. 我找不到任何对我来说有意义的信息。 Hopefully someone can break it down and help me understand before I loose my mind. 希望有人可以分解它,并在我失去主意之前帮助我理解。

Take a look at Managed Accounts 看看托管帐户

Stripe - Managed Accounts - https://stripe.com/docs/connect/managed-accounts 条纹-托管帐户-https://stripe.com/docs/connect/managed-accounts

You get a greater freedom when it comes to things like updating details and it is also a little stricter but worth it for the added API features. 在更新详细信息之类的东西时,您将获得更大的自由度,同时也有一点点严格,但是值得添加的API功能使用。

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

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