Hi Team
Has anyone done work on eCommerce on paying using payfast as payment integration on dev?
Hi Team
Has anyone done work on eCommerce on paying using payfast as payment integration on dev?
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
Jayraj ChhayaRank #304 · 8.2K reputationPosted May 9, 2024, 8:13 AM EDT
To integrate PayFast as a payment method in an eCommerce application built with Dot Net Core, you can follow these steps:
public IActionResult InitiatePayment() { var payFast = new PayFast("YOUR_MERCHANT_ID", "YOUR_MERCHANT_KEY"); var paymentRequest = new PaymentRequest { Amount = 100.00m, MerchantReference = "ORDER123", // Add more payment details as needed }; var paymentUrl = payFast.GetPaymentUrl(paymentRequest); return Redirect(paymentUrl); }By following these steps, you can successfully integrate PayFast as a payment method in your Dot Net Core eCommerce application.
Jaimin ShethiyaRank #177 · 13.7K reputationPosted May 10, 2024, 1:33 AM EDT
Hello,
Please reer the below links,
https://payfast.io/blog/how-to-integrate-payfast-and-get-paid-online/
https://payfast.io/integration/
https://github.com/topics/payfast
Thanks