Link Paypal Html Script and webhook - php

I am using the Paypal Subscription Button Html and Script provide by paypal. Now I wanted to link with paypal webhook. I want to track the events like BILLING.SUBSCRIPTION.RENEWED and BILLING.SUBSCRIPTION.CANCELLED.
Is this possible without using the App keys? When I created the App , I created with the same paypal-id so, that means my all webhooks in app is going get render when subscription event take place, without attaching any keys with it ?
Anyone there who can solve my query?

In order to receive Webhook events, you need to first subscribe to them.
For information on ways to subscribe to Webhook events for an application, see the PayPal documentation here.
It can be done via an API call, or via the Developer Dashboard.

Related

AWS SNS Endpoint subscription to a topic

Instead of creating an endpoint in an application and using that endpoint to create a subscription in a topic, Is it possible subscribe to a topic directly with the Registration Id. Also just want to know if it is possible to do it in PHP.
Please help me here.
It's not to possible subscribe an endpoint to a topic directly with the Registration Id (or token). You will first need to subscribe the device to an Application. You can then send direct pushes to the endpoints or subscribe them to your topics.
Note that "when you delete an endpoint that is also subscribed to a topic, you must also unsubscribe the endpoint from the topic", it's not unsubscribed automatically ~ http://docs.aws.amazon.com/sns/latest/api/API_DeleteEndpoint.html.
You can use AWS SDK for PHP to subscribe your endpoints to your topics, for more information, see http://docs.aws.amazon.com/aws-sdk-php/v2/api/class-Aws.Sns.SnsClient.html#_subscribe
AWS does not provide a way to do that automatically, but you can easily handle it in your code.
Take a look at this StackOverflow thread for more information and sample code in Objective-C: "You can directly call the Subscribe API after you have created your endpoint. Unlike other kinds of subscription, no confirmation is necessary with SNS Mobile Push".

PHP + PayPal: make payment by PayPal without screen login

I have a new question. This is my context:
I want to make my own API REST, where I can call this method with information about my product as parameters. My backend method do the typical purchased process but it doesn't show the PayPal screen which show information about my product, just do the process directly and I receive an answer. Is it possible?
I'm using the PayPal SDK for PHP, and looking for at Google I just have gotten that the PayPal page shows, but I'm new in this. Your answer will be so good!
Yes, this is very possible. There are plenty of tutorials online for building your own REST service, and within your service methods you can hit other APIs or do anything you need to do.
Your service can parse the results from the 3rd party service you're hitting (you could hit 10 different services if you wanted to) and then you would generated your own basic response which includes a collection of all that data back to whatever client hits your service.

How to create infusionsoft plugins that will communicate with mongoosemetrics APIs?

I am a senior PHP developer, but I'm newbie with Infusionsoft. My client has the requirements below:
Create a plugin in Infusionsoft to trigger an event at the time of affiliate registration with a affiliate traceable phone number via Mongoose API.
Create a plugin in Infusionsoft to trigger an event at the time of affiliate login which will send a affiliate traceable phone number via Mongoose Metrics API and send a response with call details/statistics to the Infusionsoft server.
I actually do not where and how to create a plugin in Infusionsoft and how to call Mongoose Metrics API in it.
Can anybody please give me step-by-step info if possible so that I can work through this faster?
If you are using a webform for your affiliates to signup you can have Infusionsoft send a POST with the information the affiliate used in the form to a script which would add the number to mongoose api.
If you are manually creating affiliates inside infusionsoft then there is no automatic listener to send the information, a post would have to be setup in an actionset and run manually on the affiliate's contact record. If you are not familiar with action sets you can read about them here
As far as the second plugin there is no way to run an action when an affiliate logs in. You might be able to do some magic if you find a way to add HTML/Javascript to the affiliate login page and send that information to your server. However, that is a very ugly way to do it.

is it possible to purchase a product using curl php library and paypal?

i have a client that provide a service on his website.he wants to automate the service orders.
the service has these steps:
1- user submit a form with request.
2- my client review the request, validate it and use the info in this request to :
3- login to another website
4- buy a product from this website using his paypal account.
5- downlad and send the product in email to the user.
i was able to automate all of this using curl.the only problem i have is the purchase process using papal.i didn't deal with paypal before.so i want to know if i can just submit the papal form on the purchase website using curl.or this will not work?
while searching i found something about papal IPN.but i don't know if my client have this IPN in his papal account or not? also, he does not want to give me his papal info. is there is anyway i can do this with fake paypal account to try it?
thank you so much.
First of all, sign up for a PayPal sandbox account: https://developer.paypal.com/devscr?cmd=_signup-run
It's a really slick system PayPal put together for developers to test out stuff.
Secondly, review the PayPal API's at:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_download_sdks
I believe all you need is the PHP Name-Value pair or Website Payments Standard interfaces.
IPN stands for Instant Payment Notification, it's a way for PayPal to tell you that a payment was made.
What you are looking for is either the PayPal NVP or SOAP interfaces.

Which payment method do I need to use for PHP PayPal API?

I need to setup a payment method on my website that allows a certain user to pay another via two email address'. So essentially, user1 comes to a page, downloads an invoice and has the option to pay that invoice using a link which redirects to paypal with the prefilled details i.e. payeremail, receiveremail, amt, currencycode. Does anyone know which API call I need to make to do this? All I can really see in the API is for other users to pay my account which I already have setup for another function. Thanks in advance.
You need PayPal IPN, after the payment goes through you will receive following information https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_IPNandPDTVariables
Here is PHP handler for the IPN, http://www.boolcast.com/development/joomla-custom-paypal-ipn
You can also look at other sample code example on PayPal site.

Categories