Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
Stripe Webhook - PHP Program to load virtual Wallet
Post Body

Hello Sub,

First Post here and I've come to a dead end with my knowledge.

I am trying to write a PHP program that handles the incoming webhook from Stripe that confirms the payment of a coin system I am running on my website.

Once the payment completes, a webhook fires back to my WordPress site and loads up a virtual wallet that the customer can see on their account.

I have all the webhook set up and it is being received correctly. The step I'm stuck on now is creating the wallet and getting the coins to load into it. I can create an extra field in the Customer metadata to hold the virtual wallet balance but automating all this would be the dream. Should I be utilising a more secure system like MyPHP to store the information? Or will the WordPress backend be OK?

Is there any documentation or someone familiar with this kind of program that could lend me some info, I love doing things myself and learning. Getting a nice base idea and reading through the code will help me understand a bit more.

I've utilised ChatGPT but that thing is all over the place. No structure when you ask it for specifics.

Author
Account Strength
90%
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
920
Link Karma
580
Comment Karma
340
Profile updated: 4 days ago
Posts updated: 5 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago