Generating invoice email using Webhook in Stripe and Mailchimp - stripe-payments

Can anyone please tell me (or point me in the direction) how to generate an invoice email using webhook api in stripe with the mailchimp account?

You actually can't do that directly because you can't create a MailChimp endpoint which receives data through the web. You need an intermediary layer in between Stripe and MailChimp, which receives data from Stripe, validates the data, converts the data according to your needs, and using MailChimp API sends it to MailChimp to be sent out as an email. But an easier approach will be (in my opinion) creating an in-house solution for sending out emails instead of using MailChimp.

Related

Is it possible to send a DocuSign template via sms delivery?

As the title suggests, I'm wondering how I can send a template defined within Docusign via SMS delivery. However, I'm only seeing documentation on how to send a document from storage outside of docusign. Am I missing something?
Yes, for the recipients specified in a template, your API program can choose for them to be notified by SMS only, SMS and email, or email only.
This live example via the API Request Builder uses a template to send an SMS-only notification to a recipient.
This live example via the API Request Builder uses a template to send SMS and email notifications to a recipient.
If you want to know how to replace a template's document with a different document when you send the envelope, here's a live example for that.
The API Request Builder can create the examples in C#, Java, PHP, Node.JS, Ruby, or Python.

Test stripe api payment using google pay token

I have set up a Google Pay button on the front end of my website and have tested communicating with the Google Pay API and have successfully received a response.
I have a Laravel project (PHP) so the front end sends this data to the server to be processed.
Once I have this response however I am not sure how to pass the required information to stripe api. From my understanding I need to pass the token received in the response to stripe's api but not sure how to formulate the request to stripe using this token.
Any assistance would be greatly appreciated
On your PHP side, you need to create a Charge on Stripe: https://stripe.com/docs/api/charges/create , using stripe-php library.
The Stripe Token you got from Google Pay, you would pass that under the source: tok_123 parameter.
(recommended) If you are using PaymentIntent/PaymentMethod objects, you would create a PaymentIntent (https://stripe.com/docs/api/payment_intents/create) using the API and pass payment_method: pm_123.

How to send invoice in pdf attachment to customer via email usign stripe API?

I want to send invoice in pdf format to the customer via email using stripe API.
I can fetch invoice and make custom html. But I want direct fetch pdf via stripe API. Is there any solution for that?
It does not appear this is something Stripe offers.
https://stripe.com/docs/receipts
For most custom applications I tend to disable my payment gateway receipts and create my own. The disadvantage here is you have to have a authoritative transactional email service so things do not get sent to spam.
The advantage is you can customize the receipt to your liking and if you switch or add more payment gateways in the future, you do not have to recreate or handle multiple receipt emails.
I would send the receipt from your app
Use a good transactional email service like SparkPost. They have a free tier and a great SMTP connection option that plugs into Cake's email class
Make sure you have a DKIM signature setup and a valid SPF record. https://www.mail-tester.com/ is great for finding problems in emails

Sending order email confirmation using mailchimp

Fairly new to mailchimp and nodejs. I'm trying to send an email using mailchimp after a user places order in my website entirely using nodejs. However document states there is no real way to send one-to-one email using mailchimp but only possible to send bulk list of emails. How would I achieve this using nodejs? I've installed mailchimp package and ready to go with API key. I need a function that sends email to every user upon completing an order with a template.
I think that MailChimp is a bulk email sender.
If you want to do one-to-one email, then you should try Mailgun from Mailchimp.
A popular alternative is Sendgrid and they have a good, easy-to-use NPM package.

Sending email to lists via MailChimp API v3.0?

So it's not possible to create campaigns via MailChimp API v3.0 at this moment. But is it possible to send emails to lists/groups/segments via API v3.0? Or should I use API v2.0 for this functionality?
I have seen this one already: MailChimp send email v3.0
It's now possible to create and send a campaign through the V3.0 API.
See the this page
You can send to a saved segment, but as far as I can tell, there's no way to create a saved segment via the API, or to send to any subset of the list members.

Resources