notify_url no longer working - api

This has been working for years then about 6 weeks ago or so the notify_url is no longer called, my form/post code looks like this:
<form id="payme" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="return" value="http://www.houdinistop.co.uk/Thanks.aspx" />
<input type="hidden" name="notify_url" value="http://www.houdinistop.co.uk/Payment/Receive_PayPal.ashx" />
I have a bit of code on the ashx page which will send me an email if the page is hit, and if i go to the ashx page in my browser i get the email, but following a paypal transaction it never calls the handler.
It used to work and I made no changes and now it doesnt work so I'm guessing paypal changes something but all my Googling efforts cant find any info

Do notify_url setting in bussiness a/c of paypal
In addition to email notification, PayPal can send you the transaction data (also called Instant Payment Notification) to a specific url. With Instant Payment Notification, PayPal sends payment notification messages with encrypted code to the specified URL for each payment you receive. Follow the instructions below to setup Instant Payment Notification.
Go to the PayPal website and log in to your account.
Click "Profile" at the top of the page.
Click "Instant Payment Notification Preferences" in the Selling Preferences column.
Click "Edit IPN Settings."
Enter the notification URL and select "Receive IPN messages."
example: http://www.houdinistop.co.uk/Payment/Receive_PayPal.ashx
Click "Save."

Related

Hello Bar webhook Integration with coldfusion

I am using hellobar popup on my website. Hello bar popup has a contact form with email field. A user comes to site and provide its email to subscribe. Then hello bar sends that information of user to the owner of using email tools and webhook. I have created a webhook URL which triggers nicely when a user submits the form but it never sent any data. I am supposed to have JSON response but it is always empty.

Broken history for a self-updating form using post-redirect-get

I have a URL /books, which lists some books, and a URL pattern /books/{some-book-title} which shows a view/update form for the metadata of a book. Here's a typical user story, where a user corrects an incorrect author entry:
GET /books
Ulysses
Don Quixote
GET /books/ulysses
<form action="/books/ulysses" method="post" enctype="application/x-www-form-urlencoded">
<input name="author" value="Jamessss Joycessss">
</form>
POST /books/ulysses FORMDATA author=James+Joyce
Redirect 303 SEE OTHER location = /books/ulysses
GET /books/ulysses
<form action="/books/ulysses" method="post" enctype="application/x-www-form-urlencoded">
<input name="author" value="James Joyce">
</form>
The problem is that the history stack is now
/books
/books/ulysses
/books/ulysses
so that when the user presses "back", they don't go back to /books, they just refresh the current page. Is there a non-javascript way to handle the update case so that the back button has the expected behavior? And if not, what's the javascript way to fix this?
EDIT: even more confusing if you post multiple times
GET /books
GET /books/ulysses author=Jamesss Joycesss
POST author=3 -> redirect shows author=3
POST author=2 -> redirect shows author=2
POST author=1 -> redirect shows author=1
Press back button /books/ulysses shows author=1
Press back button /books/ulysses shows author=2 (!!!)
Press back button /books/ulysses shows author=3 (!!!)
Press back button /books
A JavaScript way of modifying behavior of back button would be to use the history API
Here is a quick way to go to first page in the history stack. Just add an Event listener for back button and use history API.
window.history.go(0);
Have a look at the API : https://developer.mozilla.org/en-US/docs/Web/API/History_API

Customize Stencil Order Confirmation page

I have been searching this for hours and I am not getting anything useful.
In BigCommerce Stencil theme, is it possible to customize/create custom template for the order-confirmation.html page? specifically the content of {{checkout.order_confirmation_content}}
If there is not, is there a workaround or something? I mean there must be a way to change the HTML of that page.
NOTE:
I want to change the HTML not just the CSS
Currently, the only checkout flow that supports editing the content of the confirmation page is Custom One-Page Checkout (for Developers). Developer Checkout gives you full access to the html for the checkout and confirmation page. You can access this setting under Advanced Settings>Checkout in your control panel.
Once enabled, navigate to Storefront>Checkout Template Files (you may need to refresh to see this option appear). The order confirmation page is order.html.
The optimized one-page checkout flow /checkout/order-confirmation supports customization of theme\templates\pages\order-confirmation.html by adding language strings to your localization.
get a copy of opt-checkout-en.json from https://developer.bigcommerce.com/stencil-docs/localization/multi-language-checkout
{
"optimized_checkout": {
"order_confirmation": {
"order_number_text": "Your order number is <strong>{orderNumber}</strong>",
"order_pending_review_text": "Your order was sent to us but is currently awaiting payment. Once we receive the payment for your order, it will be completed. If you've already provided payment details then we will process your order manually and send you an email when it's completed.",
"order_with_downloadable_digital_items_text": "You can download your digital purchases by clicking the links on this page, or by logging into your account at any time. There is also a download link in your confirmation email, which should be arriving shortly.",
"order_with_support_number_text": "An email will be sent containing information about your purchase. If you have any questions about your purchase, email us at <a ng-href=\"mailto:{supportEmail}?Subject=Order {orderNumber}\" target=\"_top\">{supportEmail}</a> or call us at {supportPhoneNumber}.",
"order_without_downloadable_digital_items_text": "Once we receive your payment, we’ll send a confirmation email with a link to download your digital purchases.",
"order_without_support_number_text": "An email will be sent containing information about your purchase. If you have any questions about your purchase, email us at <a ng-href=\"mailto:{supportEmail}?Subject=Order {orderNumber}\" target=\"_top\">{supportEmail}</a>.",
"thank_you_customer_heading": "Thank you {name}!",
"thank_you_heading": "Thank you!",
"order_status_update_facebook_messenger_heading": "Get instant updates of your order to Messenger"
}
}
}
It's unclear to me where supportEmail comes from.

Notification on new user sign up

In Shopify, is it possible to receive an email notification when a new user signs up (just like I get a notification when an order is placed)?
I have checked under Settings > Notifications but could not find anything. If this is not a default option provided by Shopify, is it possible to implement this using any app?
You can create a webhook to send a notification to a particular URL when the Customer creation event gets fired. Go to your Shopify admin, click on Settings, then on Notifications, scroll down and click on Create a webhook. Once the popup shows, from the dropdown, choose Customer creation Event, JSON or XML format and the url where you want to recieve the notification.
Once you have this setup, look for a webservice which reads webhooks and converts them into an email. Zapier would be a good nominee.

How create a upload-form?

i need to set on my web page a upload form for videos and i want that this videos are sent to my mail.
i found this code
<form name="myWebForm" action="mailto:annie.etoile#gmail.com" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="10mb" />
<input type="video" name="uploadField" />
<input type="submit" value="Send">
</form>
But when i press on "Send" it opens my mailing software, it doesn't send autmatically to me the video.
Maybe there's something wrong in the code?
It "opens your mail software" because that's exactly what it's being told to do here:
action="mailto:annie.etoile#gmail.com"
When you say you want it to "upload"... Where do you want it to go? If you want to send it to the web server then you need some server-side resource which can receive it. For example, if you have a PHP page which accepts the file upload, you'd change your form action to that page:
action="fileupload.php"
Then you'd have server-side code in that PHP file to accept the uploaded file and do whatever you want to do with it. (Including mail it to you.)
It doesn't have to be PHP on the server-side code, any server-side language/framework/environment/etc. can do the job. The point is that you'd need something there. If all you have is client-side code (which is all you have in the question) then the mailto: action is about as good as it's going to get.