Click here to Skip to main content
15,913,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friend

How to create a stripe charge with a checkout token sent via AJAX to Asp,net C#?

its using Embedded credit card form load from stripe

i got solution but this code using php language but i want to modify asp.net C# only for server side code see below link and im also got tokenid using my API key.

http://stackoverflow.com/questions/22445078/how-to-create-a-stripe-charge-with-a-checkout-token-sent-via-ajax-to-php[^]
Posted

1 solution

It's just a REST API so google how you use REST with .net, or try one of their .net libraries that, I assume, helps make using the api easier.

https://stripe.com/docs/libraries[^]
 
Share this answer
 
Comments
Member 11384516 14-May-15 5:28am    
hi there,
thanks reply i already tried custom design its work perfect but when using stripe credit form like Embedded checkout. like below link

https://stripe.com/docs/tutorials/checkout

click pay with card and give testing card details after you will getting Token id
Now tell me friend what can i do next . i already posted main question sample link compare and tell me how to use
try {
$charge = Stripe_Charge::create(array(
"amount" => 2000, // amount in cents, again
"currency" => "usd",
"card" => $tokenid,
"description" => "payinguser@example.com")
);
echo 'success';
} catch(Stripe_CardError $e) {
// The card has been declined
echo $tokenid;
}

to c#

Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900