How to get customer information after paypal transaction? - cakephp

I am trying to get the customer's address, name and any information that they enter on the paypal side so I can create a customer account with order history. I am currently using web payments standard for the simplicity.
How do I get that information from paypal after the user is sent back to my confirmation page?
Can I get this back from the IPN?

Once they have completed the transaction it will show up in your HISTORY section. Next to the specific transaction click on "Details". This will provide you with all the information that was requested of them upon check out.
If you're using PayPal buttons make sure that the appropriate check boxes are checked when created the button to ask for the buyers address, otherwise it may not ask at all.

Related

How to generate links for profile completion with expiry date in NextJS - Supabase

I'm currently working on a NextJS-Supabase project where I have to build a dashboard for some vendors.
Each vendor should be able to login into his dashboard and add his customers to keep track of their informations. The process of adding a customer falls into the following steps :
fill the customer email and submit the request of adding him.
The customer receives an email containing a link available for 5hours.
The link redirects him to a page where he can complete some of his basic information such as address, phone...etc.
Once the form submitted the customer data are updated in Supabase.
I don't know how to implement this in NextJS-Supabase knowing that the customers don't have a user account. Only vendors have a user account and can login/logout.

How to get the behavior change notification to email address?

I'd like to get the behavior change notification, but I have no idea to do so.
https://community.snowflake.com/s/article/Behavior-Change-Policy
This page says, snowflake sends email notification of behavior changes to a mailing list of users who are authorized to submit support cases.
In order to get the autlirized to submit support cases, I did this way:https://community.snowflake.com/s/article/How-To-Submit-a-Support-Case-in-Snowflake-Lodge
I expect I can check the pending behavior change like this page:
https://community.snowflake.com/s/article/How-to-Use-the-Notification-Center, but the checkbox doesn't apper.
How can I get the notificaiton? and, what point in my process is wrong?
You must be a Community Enabled Customer e.g. you can submit a support ticket via the community page.
Alternatively, you must have Organization enabled and be the Orgadmin of your company, then you can opt-in to receive the notification described here:
https://docs.snowflake.com/en/user-guide/ui-snowsight-admin.html
The Notification Contacts page of Snowsight lets you set email addresses to receive security, privacy, and product notifications.
Emails are sent in accordance with the Snowflake Policy Notice.
Note
Only users with the ORGADMIN role can view contact information. Other users will not see Admin » Contacts. The role need not be currently active but only granted.

Track user acquisition on exit - Google Analytics

Is it possible to get a current users acquisition channel ( Facebook, Glassdoor, etc... ) and append it to a string during an onSubmit?
We have a careers page on our site with a search form that when filled out and submitted takes the user to a 3rd party software we use for our job listings. What we would like to do is track the users that submitted that form so we can see what channel lead to them looking for a job.
Ex:
User visits our Facebook page and clicks link to our site. Once on our site they fill out the job search form and is sent to our jobs listing site. We use JS to create the onSumbit url and fill it with the fields they answered and would like add another "acquisition" parameter to it with said acquisition.
You can store the referrer in a cookie if this is different from the domain of your website. In this way you can know where the user came from and use that value in the string you send to submit.

Create custom paypal button with link direct after payment

I am trying to create a custom paypal button for selling digital goods, that will direct the buyer to a link that will allow him to download the file.
I've read a bit this paypal article about advanced html variables but I am not sure which I have to use to make it work: https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/
Obviously the download should only initiate based on the payment ID to prevent free downloads, or is that done automatically by paypal?
What I would recommend us utilizing Instant Payment Notification (IPN) to handle all your post-payment processing tasks like updating your database, sending out email notifications (including one with a download link), etc.
Instant Payment Notification (IPN) is a message service that notifies
you of events related to PayPal transactions. You can use IPN messages
to automate back-office and administrative functions, such as
fulfilling orders, tracking customers, and providing status and other
transaction-related information.
This will allow you to not only automate the procedures, but also correctly handle things like e-checks or any other type of payment that may originally be in a "pending" status. You wouldn't want to deliver the digital goods until that payment actually clears. With IPN you will get 1 notification that your script can handle when the payment comes through as pending, and you would get another one when the payment updates to Completed, or Failed, or whatever.
The IPN's happen in real-time so buyers won't have to wait on anything. Whatever you're doing within the script would happen instantly upon the transaction completing.

Online GAE Application User

How to know if a user is currently logged-in in your Google App Engine application?
The application allow its users to browse other users' profile. If the viewed profile is also using or logged-in in the application, i want a notification that the viewed profile is online.
How to achieve this requirements?
If you are managing user profiles, you know when a user logs in. At the end of the login process, just save the user's log-in information in the memcache somehow.
You will later be able to check if a user is logged-in just by searching for him in your memcache.
This way is easy to catch and track the connection events, but you also have to react when a user disconnects, to have your list up to date. To achieve this, you can use a Channel. See the google documentation.
You could, as Gaël suggests, use the Channel API to track this, but it's probably overkill. If you wanted to go that route, just listen for the connected & disconnected messages, and update a field in the db that indicates that the user is signed in.
A less expensive route might be to just update a field in your user's record that's something like "last time this user requested a page." If it's been more than n minutes since the last time the user requested a page, assume they're signed out. Indeed, you could even do this in memcache with a map from userid to last access time.
It comes down to what you want to do with the "signed in" information: if you just want to give a general sense of whether a user's around, or how many users are online, using the datastore or memcache solution is probably good. On the other hand, if you want to reflect the user's presence so they can respond to eg. IMs, then you'll probably want the Channel API anyway so you can immediately deliver messages to them.

Resources