Shopify API refund email notifications - shopify

I am using the Transactions API to create refunds, then using the Order API to cancel the order. The cancel part generates a confirmation email to the customer according to what we have set up as our template just fine, however, the refund email is never sent. If we refund an order manually through the admin portal, the email is sent, but not via the Transactions API.
This email should be sent automatically, without having to send in a "notify_customer" parameter, correct?
Ben

The refund api has a boolean 'notify' property.
{
refund:{
notify: true,
...
}
}

Related

How to Validate Receiver Paypal Email before Payout , Is their Any API?

I am sending payment to user of my application but want to validate that Is Paypal account is exist on this email or not?
The only way to know if there is a PayPal account attached to an email address prior to a payment is to use Connect with PayPal to have the user log in with their account, and validate the response.
Otherwise, if you send a payment to an email address that has no account, they will receive a notification that there is money waiting and it will be auto-refunded after 30 days (with a reminder) if they do not claim it by creating an account or adding that email to an existing account.

When will paypal send back the custom variable?

When i add the "custom" variable (with a value of course) to a PayPal subscription Button:
Will it send that custom value with the "profile created" IPN?
With the "payment received" IPN? (Only the first time? each time?)
Both?
With other IPN's associated to this same subscription (when canceling for example)?
PayPal Says:
User-defined field which PayPal passes through the system and returns to you in your merchant payment notification email. Subscribers do not see this field.
But i don't really understand what it means...
You will get the custom field value in every IPN when any action takes for that recurring payment. You will get the IPN in the following cases:
When Profile creates/Payment happens/Profile suspend/Profile canceled.

Detect an invalid paypal email using MassPay Paypal API

I'm using MassPay Paypal API to make payments.
I was able to test it and is working pretty well using sandbox accounts.
The problem is I couldn't find a way to identify if the email that is going to receive money is a valid paypal email.
I tested it using a fake email and money was taken from the payer sandbox account even though the email (the one that should receive the money) doesn't have a paypal account associated, and the API response was as if it was a successful request.
I found this method to get the verification status of an account, but there is no much info in the documentation or any other info that helps me understand if this is what I'm looking for or how to apply it.
You will need an API operation called GetVerifiedStatus API Operation under PayPal adaptive accounts. Refer the below:
https://developer.paypal.com/docs/classic/api/adaptive-accounts/GetVerifiedStatus_API_Operation/
https://developer.paypal.com/docs/classic/adaptive-accounts/gs_AdaptiveAccounts/
Sample API request:
API end point: https://svcs.sandbox.paypal.com/AdaptiveAccounts/GetVerifiedStatus
requestEnvelope.errorLanguage = en_US&emailAddress = email#test.com&firstName = Firstname&lastName = Lastname&matchCriteria = NAME

Shopify find name or email of the user that triggers a webhook

I need to find the name or email of the user who is triggering a webhook in shopify any idea ?
Or Getting the cart token (id) when cart gets created!
If you register webhooks for checkout or order, you will see the customer email address in the webhook data. Both also include the cart token. You can see all included fields in the reference docs below:
https://docs.shopify.com/api/reference/checkout
https://docs.shopify.com/api/reference/order

DNN Problem: Dynamic Registration, Paypal, and User Creation

I'm having a problem with the module Dynamic Registration for DNN.
The module is set up with form completion events in such a way that a user gets redirected to paypal and on completion of payment a user gets created and an email is sent out.
I also have it set up so that an email gets sent out on completion of payment, just to test that the module knows when payment has been completed.
I tried going through the process with the payment gateway (Paypal) enabled - the email gets sent out, but the user does not get created. When I disable the payment gateway, however, a user does get created as well as the email is sent out.
Is there something I'm missing here that is making the module not realize it needs to create the user?
The fact that the module sends out the email makes me think that it should also trigger the Uesr Creation event.
Any ideas/hints as to how Dynamic Registration works with Paypal or how I might be able to fix this?
When the user returns to your site from paypal you must have Friendly URL's turned on or the site can't read the data sent back from paypal.
I found the following information at http://www.datasprings.com/Products/ProductForums/tabid/727/forumid/3/tpage/1/view/topic/postid/4581/language/en-US/Default.aspx#4581
When PayPal integration is turned on:
The user is redirected to PayPal based on the information and settings within your PayPal Payment gateway. This includes the PayPal login, sandbox or standard gateway, and payment information/additional parameters.
Completion events do not get fire off initially
How do completed events get fired off?
When PayPal is enabled Dynamic Completion Events need to be ‘linked’ to PayPal IPN codes. In short, this means that you will specify within the PayPal payment gateway section which ‘completion events’ should be fired off basically conditionally upon which IPN code PayPal will send to your registration form.
For example: Maybe you want to setup a completion event to add the user to a security role, but you only want this to happen when the payment is completed. You would first create the completion event, and then you would ‘link it’ within the PayPal payment gateway section under ‘Form Completion Events / PayPal Payment Status’
For example: Maybe you want to setup a ‘Payment failed’ email to be sent to the administrator if a subscription payment fails. You would first create the completion event, and then you would ‘link it’ within the PayPal payment gateway section under ‘Form Completion Events / PayPal Payment Status’