hello everybody, i have made payment gateway with paypal and credit. i will add mobile payment, but i cannot find any codes. i need your help, please and send me the codes... kind regards
Loading
hello everybody, i have made payment gateway with paypal and credit. i will add mobile payment, but i cannot find any codes. i need your help, please and send me the codes... kind regards
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jithu ThomasRank #437 · 5.7K reputationPosted Jan 21, 2024, 12:35 AM EST
Sign up for a Stripe account:
Go to Stripe and sign up for an account.
Get your API keys:
After signing up, you'll get your API keys from the Stripe dashboard.
Integrate Stripe into your project:
If you are using a web application, you can use the Stripe.js library. For mobile apps, you might use Stripe's mobile SDKs (e.g., Stripe iOS SDK for iOS apps).
Add the Stripe library to your project. For example, for a web application, include the Stripe.js script:
Set up your front-end:
Create a payment form with necessary fields (e.g., card number, expiration date, CVC).
Initialize Stripe and handle payments on the front-end:
For example, using JavaScript:
var stripe = Stripe('YOUR_PUBLIC_KEY'); var elements = stripe.elements(); var card = elements.create('card'); card.mount('#card-number'); var form = document.getElementById('payment-form'); form.addEventListener('submit', function(event) { event.preventDefault(); stripe.createToken(card).then(function(result) { if (result.error) { // Handle errors console.error(result.error.message); } else { // Send token to your server var token = result.token.id; // Now, you can send the token to your server for processing } }); });Handle payment on your server:
On your server, use the Stripe API to handle the payment using the token you received.
This is a basic example, and you might need to customize it based on your specific requirements, and the details could change based on the payment provider you choose. Always refer to the official documentation of the payment provider for the most accurate and up-to-date information.
venus najadRank #2,456 · 573 reputationPosted Jan 28, 2024, 12:08 PM EST
thanks jithu thomas for your respond... with mobile payment, i mean like venmo payment, which is one of american mobile payment method... hoiw can i integrate mobile payment in c# asp net webform? kind regards
Jithu ThomasRank #437 · 5.7K reputationPosted Jan 29, 2024, 1:05 AM EST
M/s. Venus
Kindly follow the documentation of venmo as mentioned below: - this might be helping you.
https://venmo.com/gettingstarted/createapp/
Moreover, the below mentioned sample code (paid) will give u an example.
https://codecanyon.net/item/paypal-checkout-in-aspnet-web-forms-c-using-orders-v2-rest-api-serverside-integration/27534910
Thanks & Regards,