Stripe

Stripe is the payment service we use and integrate with our project in various ways

Why Stripe?

Well for one, paypal sdk is outdated, has little documentation, and didn't play nicely with windows form. So I decided to go with stripe as it had all of these things which made my life easier.

Setting up Stripe

First off you need access to the account. From there you are able to access everything in the test environment. We had to set up a product and issue cards to start testing in our project

Creating a Product

We want to create a product so we have something the user can purchase that we can track. So look up in the search bar "Product" and then click the purple "New" button. Then create the product with a name and description, we can then see it in the product menu.

Shows our product and its id

With this we can now press the "view payment link" to grab what we really need.

Copy the product buy url so we can reference it in our project

We can grab the url which we can use in our project to take the user to the purchase page when they click the "Pay" option after killing the flea. This method can be used for whenever a new transaction is implemented into the project.

Testing our Product

First thing first, we need to issue a fake credit card so we can test the product and track it's payment logs. So type "Card" into the search bar and press issuing. Againsimply press the purple "New" and input fake info to create a card. Then we can see the credit card info which looks like ...

Credit Card Info

Now when we use the product link we have a credit card to test the payment success and failure.

Before testing don't forget to add funds to the card, so type "Balances" in the search andonce there simply go to top-up and add funds, or take away to test instances of success and failure methods.

Lastly with all this together we can check the logs to see what happens and adjust accordingly, simply search logs and you get

Logs and all http Post, Get, etc

Last updated