I'm working on an EPiServer 8 MVC implementation and I can't see how to trigger the payment process.
I've got my payment provider registered in Commerce Manager and I'm adding a payment to my OrderForm, Accepting Changes on the Cart, running the CartCheckoutWorkflow and saving the Cart as a Purchase Order but at no point in my payment provider triggered.
I've got the EPiServer.Commerce.Sample site from Commerce 7.5 but I cannot see how and where the payment provider is invoked.
What am I missing?
Try stepping through the workflows. I had the same problem and it turned out that there where no items in stock. This triggered the line item to be deleted from my order and the price to be 0. When it is 0, the paymentprovider is never called.
Related
I'm currently using Firebase for my ReactJs website.
I wanted to use stripe to add a payment module. So I created an account on Stripe and added the extension "Run Payments with Stripe" on my Firebase project.
Everything works fine on this extension on my website:
I can make payment
I'm well redirected to the Stripe payment interface
The webhook add the payment document on my customer document on Firestore
But, I have one problem remaining : how to know which firestore document payment was concerned by the one-time payment a customer make on the current checkout session?
Firestore does not update checkout session document with the payment id, or the payment document with the checkout session id.
I tried to update manually the webhook function on Google Cloud but I don't think that's a good idea (and I don't know why but the update was not considered).
I don't want to list all payment the customer made and displayed it : I want to have this specific payment and display a summary of this order.
Does someone has clues on this?
Yup, it appears that the function in the webhook handler does not add Checkout Session data with the associated Firestore payment document.
I'd recommend creating an issue on the GitHub repository with your feedback/request. Alternatively you can configure a 2nd webhook to update the Firestore documents as you need.
I'm using paypal subscription plan which is define here Subscription Integration I'm using reactjs here is package which I'm using for paypal react-paypal-button-v2 I'm successfully able to make payment but problem is I'm setting subscription plan which make payment every month. So how can I get to know when paypal made payment for next month. Is there some webhook or callback url which is called everytime when paypal made payment for this specific subscription plan. If there is how can I set any guide or something ?
Store a record of the subscriptionID when it is first created. Typically you'll want to associate this with a user.
For keeping track of future payments, set up a webhook listener for PAYMENT.SALE.COMPLETED events.
Webhook PAYMENT.SALE.COMPLETED has subscription id named billing_agreement_id.
(if this webhook was triggered as a result of a subscription payment)
Ex: webhook body like
{
...
...
resource: {
"billing_agreement_id":"I-XXXXXXXXX"
}
}
I am looking to implement a referral program for our app that will gives users a free month off their subscription every time they have a successful referral.
I came across this question Stripe: add free days to a subscription but it is 6 years old so I am not sure if this is still the way to go since Stripe has updated their service and API multiple times since then.
Reading through the Stripe Docs it seems there may be 2 ways to implement:
Use a coupon and apply it against the customer's subscription. (Stripe Subscription Discounts)
Move the date for their billing cycle by 1 month (Stripe Subscription Billing Cycles)
I would imagine this is a common thing. Is there a best practice on how to proceed?
I ended up contacting Stripe customer support and option 1 is the way to go (coupons).
Basically you create a coupon that deducts 100% of the subscription fee and you enable it for 1 month only. This will effectively skip 1 month's payment. It can be enabled manually via the Stripe Dashboard or the API.
Follow this link for more details: Stripe Coupons
When I test banner ads with test with test ad id everything works great, but when I use my real ad unit id, I receive this error as below:
Internal error, an invalid response was received from the ad server.
How can I make it work with real id?
<AdMobBanner
adSize="fullBanner"
adUnitID="ca-app-pub-1xxx/5xxx"
testDevices={[AdMobBanner.simulatorId]}
onAdFailedToLoad={error => console.error(error)}
/>
enter image description here
If the ad unit was just created please wait a bit because it takes some time to start working after verfying your payment details. If you have not already added the payment details go to Home page of Admob site and do the following steps.
1) Click Home page,
error this:
Your ad units are not displaying ads because you haven't provided your account payments information yet.
2) Click Fix It.
3) Click Select Payment,
4) And Submit.
Within 24 hours, your verification mey be done and ad will be published.
I had the same issue with my app. You just need to wait for a little. Your ad id is newly created so it will take some time to fetch ads from google servers. So give it some time and it will work soon. the first day I will try with my AdMob account its say "Internal error, an invalid response was received from the ad server." on next day try with run-android it's working fine for me. please wait for some time max 1 day after the create AdMob banner add after it's work.
Thy to removing onAdFailedToLoad
I am developing a web app which needs to check the internet if got connection or not.
If got connection, it will update a field in the db every 5 seconds.
Basically, it's a chat-like web app wherein it will update a field for datetime last seen online.
So that it will show on the other users who is currently online/logged in.
I will implement the snipplet in all the pages so that it will update the DB while you navigating the pages.
Cheers!
No self respecting database should have an issue with that.