PHP: Help with adaptive payments and embedded process - php

So currently I am using the PaypalNVP class by Peter Reisinger. It's pretty awesome doing what it does.
However, now I need to use everything that adaptive payments offers and more importantly need to use the embedded process option.
I've downloaded the PHP SDK, (so no need to tell me about it).
I've got the samples working (these are: Pay, PaymentDetails, Preapproval, etc). But they all seem to post directly to the sandbox and then just return information.
But the biggest problem is that there is no payment flow!
Before you say it, I've got the Adaptive Payments
Developer Guide but it might be a little too much for me. :( I'd rather just lean on a class and make it do the bulk of work for me. :)
This is the back story, my question is I can't find a way to do a simple pay payment flow using adaptive payments using the embedded process.
Can anyone point me into the direction of an updated class (not something circa 2005), or if you have some time, knock up an example!
To be honest, an example would be better. I learn better looking at other peoples code :)
Edit: I've even seen this, but: it's of little help really
Cheers

After headbanging for a while, the link I commented with earlier worked for me!
http://www.zerogravpro.com/PayPal/Articles/DigitalGoodsExpressCheckout/DigiGoodsEC.html

Related

OAuth2, retrieve data from Google Analytics

The why
I'm working on a plugin that is supposed to interact with the Google Analytics, and figured that the google-api-php is the best way to do that.
I have not used a couple of hours of research and testing diffrent stuff - and i feel like i'm still stock at the beggining, so i hoped maybe somebody on SO could help a bro out :)
I have looked at every possible example i could find, read alot of stuff - but i seem not to be able to find a working example i can study.
So what is your plugin supposed to do?
What im look to do is;
Connect with Google Analytics from my webpage
Queue for diffrent data (clicks, links, country - the usual stuff)
Use diffrent kind of stastics on that data
If anybody either have a working examply i can study (i learn best by studying working code), or willing to help me out in anyway - i would appreciate it alot!
The developer documentation here provides a fair example on how to get started. Please try to run the example and if it works then you can follow the reference guide here. I hope this helps! If there is anything else you need just let me know.

Processing Paypal payments with codeigniter

I am looking for a simple library or script that I can use to make payments to PayPal. I downloaded a couple of libraries and they are all very complicated and have tons of features I dont need. I simply want a way to have a button(pay now) and when they click it, they get redirected to paypal, make the payment, and return to my site so I can save the data into the database. Can anyone recommend a good simple library or a tutorial even?
Also is that even still possible with the new PayPal API? Another words do I need to sign up for an API account to make this happen?
Thank you
These might not be as simple as you're looking for, but they work very well, are well documented in the code, and the developer is very responsive on the comments as well as here on SO.
http://www.binpress.com/app/paypal-adaptive-payments-pro-payflow-codeigniter-library/140
http://www.binpress.com/app/php-paypal-pro-adaptive-payflow-api-class/612
From what i've worked on, paypal is a pain in the wein, but these libraries help lessen the pain.

Payment Gateway theoretics

I'm new to the community and PHP, so my question may sound stupid to some, but let's get to the point.
I'm learning to use PHP at the moment, and part of it includes implementing an e-payment to an working site. I've read a lot on the net, but I can't figure out some things:
Is there a difference between Payment Gateway <-> Payment Processor, or they are used to describe a same thing?
When using a third party like Authorize, Paypal, Google Checkout, or something like this, do we really need some hard coding, or can you just stick to the information provided on their sites?
I looked through some of the (I think) major payment gateways and I haven't seen any mention of SOAP and WSDL. Are they really needed in a way that I can't find out, or are they are just used rarely and that's why I haven't found any mention of them?
Thanks in advance, and sorry if I sound like a noob. Hope to learn faster with your help, guys.
Generally speaking a Payment processor is a vendero that actually processes payments. Most Payment Processors offer gateways which is the interface you use to submit a payment for processing.
When using a payment processor how much code you have to write is goign to vary with the implementations of the gateway the processor offers and which one of those implementations you choose. Normally there are at least two - some kind of raw API which is the most flexible, and some kind of super simple link to the processor. PayPal Standard and Google Wallet are good examples of the latter, while typical usage of Authorize.net is a good example of the former. IF you use the API generally you need to implement your own order creation process/shopping cart and then you would jsut submit the payment and other details at the end. This allows you to keep everything on you site (not necessarily the data but the experience). The simple route usually involves sending user to the processors site one or more times during the shopping process usually resulting in limited customization and a clear break in user experience.
Some Gateways will use SOAP/WSDL some will use simple REST interfaces, and some will use other implementations. Its generally however they chose to implement in house, but most are going to offer a library to use it for the major scripting languges (PHP,Ruby, Python, C#.Net, VB.net) so odds are you wont have to manually make the calls you'll just utilize the library the provide and deal with the results returned.
well this a tricky business payment gateway differ from one site to another from different 3rd party implementation. u can find the easiest one for you to implement but be careful when u do this. and yes there is a difference between payment gateway and processor which is the processor is what make the payment go to the bank and transfer the money, the gateway make sure the credential that u have enter is correct
happy programing

How can I find the price of an app on the iTunes app store using PHP?

I am going to be creating a website which will require up-to-date prices on certain iPhone apps, which I know is possible because the website AppShopper does just that except they do it with every website. I am not that skilled using PHP though I am a quick learner.
I think that I will need to create a spider/scraper that takes the values from the website though I have done lots of research and I haven't figured it out, though I this may not be what I need. I am not familiar with the creation of spiders, though I am willing to learn. This will not be the key-point of the site so it doesn't need to be the most robust system, I would just like to be able to have it updated the prices
I would appreciate any help or suggestions that anyone has to offer.
There is an official Search API provided by Apple. I haven't used it myself, but it's worth looking into. Read more here.

PHP Paypal Class

Could anybody recommend a up-to-date class (or payment system) for handling paypal recurring payments with PHP?
Thank you!
UPDATE: I ended up using the PaypalNVP class by Peter Reisinger. Unfortunately, that was a very long time ago and I can't seem to locate it online (the readme and class files had no URL - just the name). If you can find it, that's a great class and I highly recommend it.
If you have the freedom to pick a gateway, pick one that provides recurring billing services and APIs to us them. I know authorize.net does.
You really, really, really, don't want to store credit card information. Really.
If you want to do a "save my information" kind of thing, find a vendor that supports storing the card details for you. Braintree does this, and I'm sure other vendors do as well.
Just in case you are still interested in one. This one is working really great and extremely easy to implement:
http://www.micahcarrick.com/04-19-2005/php-paypal-ipn-integration-class.html
I published a class that really simplifies using the Paypal API, you can check it out over on Binpress. I just recently added recurring payments support
Paypal provides a very nice code snippet for processing paypal transactions, then it's just a matter of setting up a cron job that pulls from a DB what transactions to process.
PHP Payment Library for Paypal, Authorize.net and 2Checkout:
http://www.phpfour.com/blog/2009/02/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/

Categories