Generate payment link and sms invoice using Zoho Books API - zoho

My application needs me to send a payment link to the customer via SMS. Once the payment is done, capture it and create a paid invoice and again send it via SMS to the customer. But I observed
There is no API to generate a payment link
Invoice cannot be sent via SMS.
Is there any other way of doing this?

There IS payment link API, it's just not documented.
If you POST something like
{
"customer_id": 123456000001234567,
"payment_amount": "1.00",
"expiry_time": "2022-04-30",
"description": "TEST"
}
to https://books.zoho.[eu]/api/v3/paymentlinks?organization_id=123456
you will get a new payment link with default contact email and status "generated". You can get URL from the response->payment_link->url.
Unfortunately, I didn't find out how to change the status of the payment link.
You can also send an email with POST to /api/v3/paymentlinks/{paymentlink_id}/email?organization_id=123456 if you specify subject, body and to_mail_ids array, and also do changes with PUT to i.e. expiry_time, but it would be great to know how to mark payments.

Related

Passing custom data to Stripe email receipt

I'm using Stripe's Payment Intents API (via a Payment Element) to accept payments on a site and automatically send email receipts on successful payment. I now need to send the product (a digital code) to the user inside of the receipt email, but the closest solution I've found to do this is using the description parameter of the Payment Intent object.
Unfortunately, Stripe displays the description as part of the order summary with a redundant item price right next to it:
This doesn't does look the best and I'd prefer to be able to pass in a separate section of the email, such as above the order summary.
Is there a more natural way this can be done with Stripe's email receipts?
When passing custom data to Stripe email receipt, the solution you found (e.g. to pass that data via the description parameter) is the only option on the automatic email receipts. Alternatively, you can listen to payment_intent.succeeded webhook event and handle emails from your end.

Send Mailchimp Campaign to Single Email Address

I'm creating custom emails (many customizations) in MailChimp campaign builder. Looks like the only option to send is via a campaign, which I'd need to manually upload a list of email addresses. I honestly just want to use the builder to send a quality form email, that I customize for each recipient.
Is it possible to send an email to a specific email address without building a list, etc? This will probably be a one-time thing.
You can send campaign to single email address in mailchimp through this method. However you can't send the same campaign more than once to same email address.
create an automation email with API 3.0 as trigger.
Now, to send a campaign, make POST call to the given url with email address in your mailchimp
https://us19.api.mailchimp.com/3.0/automations/********/emails/********/queue
Now, To call that api you need to add HTTP BAsic Auth or OAuth 2 to API Request. See this answer MailChimp 3.0 HTTP POST Json Example
There's also a npm module to make life easier https://npmjs.com/package/mailchimp-api-v3
This is just a workaround as mailchimp was not built for single emails. In the longer run I'd suggest you to look into mandrill, sendgrid or other transactional email tool.
You are better off using Mandrill, MailChimp's transactional email app, to send one off emails. You can still use or at least make use of MailChimp campaigns but you can send one off emails that are customised and you do not need to send to a list

Order confirmation email not working for PayPal payment method

We are not getting order confirmation email if customer placed an order through PayPal in Magento site. But we get the invoice and shipment mails.
We set Sale : Payment Action in PayPal configuration.
So once we create the order, along with the order email [it's not going to the customer] I want to send invoice mail also to customer. i=I think this extension will send invoice only once order status become complete.
Would SMTP extension work for us?
Is there anything else we need to do?

Braintree Webhooks: How can I notify customer that their subscription has been canceled

When I receive the subscription canceled webhook I can't retrieve the customers information via their payment info because it is deleted. Specifically I am trying to get the customers e-mail.
Full disclosure: I work at Braintree.
You can extract the customer id from the webhook. You didn't specify your client library language, but this is how you would do it in Ruby:
webhook_notification = Braintree::WebhookNotification.parse(
bt_signature_param, bt_payload_param
)
customer_id = webhook_notification.subject.subscription.transactions.first.customer.id
Pass the customer id from your webhook into a Customer.find call. Then inspect the result object to extract the email address.
More information on parsing webhooks here.
If you have any additional questions, feel free to reach out to Braintree support.

Sending Email receipt from Authorize.net transaction on my website

I am using Authorize.net AIM on my website to accept donations/payments. Authorize.net automatically sends an email receipt to the customer once they have made the purchase, but I wish to disable this and send an email using my own email receipt template (in .html).
Previously I have sent emails using this format after I have inserted a username and email address into mySQL from a form on my website - it worked great.
I now wish to do this same thing, but instead of inserting information into a database, using the information from their donation (amount, email address, confirmation) to send them an email.
I was using Swift to send the emails. This worked great.
How would I use php to do the same thing but with the information from my authorize.net coding?
You could use Authorize.net's API and SDK and call the GetTransactionDetailsRequest with the transId and pipe the results to your customer's email with your own custom HTML email template.

Resources