Sending receipts - PHP library for V2 API - square-connect

I use the square-connect v2 PHP library to process credit card transactions from our website. Transactions are processed (appear in our account and the customer's statement), but no receipt is sent to the card-holder. I submit the customer email address with the transaction, and in my test cases Square already has an email address on file for the card. Suggestions?

Square's e-commerce API does not automatically send receipts like checking out with Square with an in-person payment. I'd suggest sending your own receipt to your customers.

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.

Functionalities such as cash, split payments does not appear on square register app for transactions initiated by register api and Oauth flow

When I initiate a transaction from my android app using the register API, it first goes through the oauth flow, then if the merchant allows the permissions(I used default permissions) it opens up the register app's transaction page (where merchant can charge a specific amount of money sent by my android app using credit card). But the merchant cannot see any other options other then credit card processing. How do I enable cash payment, Split Card payment methods?
tenderTypes.add(ChargeRequest.TenderType.CASH);
Take a look at this page in the documentation:
https://docs.connect.squareup.com/api/register/android/
And don't forget about the sample apps here: https://github.com/square/register-android-sdk

How to buy and send sms to unverified phone numbers using twilio api

Am currently developing a web application using Laravel. I have been using twilio trial account to send messages to just one verified phone number and now I want to launch the application and be able to send sms to any phone number filled on the registration page and send an sms to the user after successfully registration. How do i do this to accomplish my task and move on because I am stack and don't know what to do...
I believe Twilio has a limit on whitelisted numbers during the trial period.
Many SMS Gateway providers do this to prevent spammers.
Nexmo, where I work, has an SMS API allows you to easily send SMS messages to phones in over 200 countries.
The API is extremely reliable, safe, & easy to integrate in your application.
All you need to do is make a simple HTTP call.
After signing up for the free trial, there will be a screen in the dashboard where you are allowed to enter up to 10 whitelisted numbers during the trial phase.
Once you top up (reload your account with funds), this restriction is lifted.
Here is some more information on how to integrate it the SMS API with PHP

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.

How to send contact form info from a website as mobile SMS?

My client has a website but doesn't check emails often. He has a lot of web enquiries through the online contact form. He carries a mobile phone though. How to send contact form details that's submitted through the website to his mobile phone as SMS?
The quickest and cheapest way is to determine the email address for that person's phone. Almost every cell phone has an email address you can send to which will show up as SMS on the device. This should help you find the email address for each carrier: http://www.makeuseof.com/tag/email-to-sms/
If you want to send an actual SMS instead of an email, you could try a service like Twilio which makes sending and receiving SMS from your apps easy via a REST API. [Full disclosure: I work at Twilio, but I was a long-time satisfied customer before starting here.]

Resources