Recurring payments IPN - payment

Working on implementation of paypal's recurring payments, I've got encountered some problems. I have followed paypal's documentation from here:
PayPal Express Checkout: Recurring Payments Process Flow
It seems that everything works properly and I get ProfileID at the end (from result of CreateRecurringPaymentsProfile() query). Recurring profile is also being created.
The problem is there's no IPN confirmation after running CreateRecurringPaymentsProfile() , but according to:
PayPal Express Checkout: PayPal Notifications - it should be.

From my experience this happens only when IPN (Instant Payment Notifications) are not enabled in your merchant account. You can enable IPN in Profile > Instant Payment Notification Preferences.

Related

How do I know if a payment is successfull in stripe

I have integrated the stripe Api in my website to process payments and It is working fine. The only problem is that after the a successfull payment, i don't get any response or an object to know if the payment is successful or not.
Stripe does process the payment and everything is fine but the question is how would I know that it is successful after stripe redirects the client to the success url ?
You can implement webhook in your application. After a payment is completed stripe will call webhook/callback of your application with the payment_status and other details. Have a look at documentation here Triggering actions with webhooks
Using webhooks and events is definitely the right way to go. You can listen for successful payments, failed payments, and other event types, then add some server code to take some action based on those events.
There's a mention of webhooks in Stripe's custom payments quickstart guide: https://stripe.com/docs/payments/quickstart#use-webhook
They also have a standalone webhooks guide: https://stripe.com/docs/webhooks/quickstart

3D secure authentication and Stripe

I am creating subscriptions upon completing the Stripe Checkout session and from what I have read, stripe supports 3d secure authentication payment on its checkout session. However, if this is true for the first time the client pays for the subscription (stripe will ask him to enter a code on the checkout session page), how will that be applicable for the remaining payments in the following months? Where will the user enter the code?
Assuming you are using Stripe Billing, your user will be automatically charged on recurring months. So they usually only have to complete 3DS for the initial payment. But if the card issuer requires 3DS to be fulfilled every invoice, you can configure your Stripe settings to automatically email your user to complete 3DS on a Stripe hosted page. However, if you want to write custom failure handling, you will need to add a webhook for customer.subscription.updated and check if the status is past_due.
https://stripe.com/docs/billing/subscriptions/overview#recurring-charges
In my case, Just added off_session when you create charge about user.
$user->charge($price, $paymentMethod, ['off_session' => true]);
Hopefully, it would be worked for you.

DocuSign API - Request Payments via Stripe - Use Stripe Test Account

I'm using the DocuSign Sandbox environment to test out sending agreements and request payment using the Stripe payment Gateway. I've added Stripe as a Payment Gateway and can add a new Payment tab to a template successfully.
I just wanted to make sure, before I send an actual envelope, how do I confirm that it will also be using the Stripe test/sandbox environment and not the live Stripe account to collect payment here? I wouldn't want to accidentally request money into my live Stripe account during testing.
You could use any stripe account and just use the 4242 fake credit card numbers to do your testing.
Here is more information about testing from Stripe

Paypal integration with Paypal IPN

Need some help for Paypal integration. I did all the configuration what is mentioned in the documentation like: Paypal gateway URL, Return URL (Success), and Notification url (~/CMSModules/Ecommerce/CMSPages/PayPalIPN.aspx). But my order status is not updating even after the successful payment.
Using sandbox account for testing
Able to redirect to Paypal page (Sandbox account) and on completion of payment, successfully redirected back to site (thank you page) configured as Return URL in settings
Below is the sample return URL from after succesfult payment
/ConfirmPaypalPayment.aspx?amt=5.00&cc=USD&cm=en-US&item_name=Order%20ID%3A%201177&st=Completed&tx=83L5281177755044V
How can I make sure PaypalIPN is executed properly,
what else I need to do/check other than what I mentioned above.
Can we debug the the code PaypalIPN.asps.cs
Is there any webpart I need to add on the thank you page(ConfirmPaypalPayment)
I am testing this in my local site with Sandbox account
Please suggest.
Thanks,
Sharath
Documentation says: The default Kentico PayPal provider does not utilize payment notifications – Webhooks or Instant Payment Notification (IPN). If you require payment notifications for any custom functionality or integrations, you need to configure the related options for your PayPal Business account and implement the required handlers (either within the Kentico web project or a custom project).
The return page(thank you page) must contain the PayPal payment execution web part, which processes the payment URL parameters provided by PayPal and completes transactions.
So there is no IPN in the default payment flow, if you want to use IPN take a look at Creating a custom payment gateway. There is there an explanation and a code sample.

Paypal REST integration - no error, but payment not processed

After some other issues we managed to go live with the PayPal REST integration. Sandbox works fine, by the way, so we assume that the code is o.k.
Well this is what happened on live System:
My first customer initiated her first payment via paypal.
The payment request shows as successfully executed on the Paypal Dashboard. No error!
But the customer always got the message that something is wrong with their creditcard.
According to Paypal customer support the credit Card is fine (and the customer successfully made other payments using the same credit Card with Paypal) but that somthing must be wrong with the payment request.
But as mentioned above I cannot see an error in the dashboard nor in the logfile.
Paypal Tech Support is not responding (since over a week), so maybe somebody here has seen this before and can advise?
Thanks a lot
Christoph

Resources