Posts Tagged Api

Handling Paypal Recurring Payments

* Recurring Payments Demo
* How Recurring Payments Work
* Recurring Payments Terms
* Recurring Payments With Express Checkout
* Options for Creating a Recurring Payments Profile
* Recurring Payments Profile Status
* Getting Recurring Payments Profile Information
* Modifying a Recurring Payments Profile
* Billing the Outstanding Amount of a Profile
* Recurring Payments Notifications

Source from paypal

Additional source: http://articles.techrepublic.com.com/5100-10878_11-5331883.html

For Recurring Payments Notifications, you can use IPN. Merchants are notified of certain events through IPN. For recurring payments profiles created using Express Checkout, buyers are also notified of specific events by email.

To activate the IPN, you need to login to your account and activate it from “Instant Payment Notification Preferences” Menu.

Once payment, subscription started, or subscription ended it will execute the url you entered in IPN setting.

Here are the request from paypal for recurring payment:

Pay

transaction_subject:, payment_date:00:24:20 Jan 29, 2010 PST, txn_type:subscr_payment, subscr_id:I-TR8AEDTYY3A3, last_name:,,
residence_country:ID, payment_gross:0.10, mc_currency:USD, business:myemail@domain.com, payment_type:instant,
protection_eligibility:Ineligible, verify_sign:AwVFRrppcBWp.SbFNfxVhWwgMJq1AzhZhdCLslBXMKqUWPTs7OhhthbB,
payer_status:verified, payer_email:client@domain.com, txn_id:9E184006CH967554N, receiver_email:myemail@domain.com,
first_name:Adri, payer_id:BRF4CDPWN84AC, receiver_id:DVFZ59JCMFVEN,payment_status:Completed,payment_fee:0.10, mc_fee:0.10, mc_gross:0.10, charset:windows-1252, notify_version:2.9,

subscribe

txn_type:subscr_signup, subscr_id:I-TR8AEDTYY3A3, last_name:,, residence_country:ID, mc_currency:USD,
business:myemail@domain.com, amount3:0.10, recurring:1, verify_sign:A8s9ZB.gPMzpWoypvEK3Oi8kH04SA6rxIBluaeZfMSHesjkeOATMaJRe,
payer_status:verified, payer_email:client@domain.com, first_name:Adri, receiver_email:myemail@domain.com, payer_id:BRF4CDPWN84AC, reattempt:1, subscr_date:00:24:19 Jan 29, 2010 PST, charset:windows-1252, notify_version:2.9, period3:1 M, mc_amount3:0.10,

cancel

txn_type:subscr_cancel, subscr_id:I-TR8AEDTYY3A3, last_name:,, residence_country:ID, mc_currency:USD, business:myemail@domain.com, amount3:0.10, recurring:1, verify_sign:AwLeRoV0CcJ4bqIPyyj4pN2QzIoEA1eWFEwodSF46c0b-.d2eIQHFjiE,
payer_status:verified, payer_email:client@domain.com, first_name:Adri, receiver_email:myemail@domain.com,
payer_id:BRF4CDPWN84AC, reattempt:1, subscr_date:00:24:19 Jan 29, 2010 PST, charset:windows-1252, notify_version:2.9, period3:1 M, mc_amount3:0.10,

There are two variable you need to check txn_type and subscr_id.

You can see that txn_type can be subscr_payment, subscr_signup, and subscr_cancel

, , , , , , , , , , , , , , , , , , , , , , , , , ,

No Comments

How to use widget multiple times

In Wordpress 2.8, there’s a new widget API. The new widgets API is a class that abstracts away much of the complexity involved in writing a widget, especially multi-widgets.

Basically, you extend WP_Widget with your own class that provides a constructor and three methods — widget(), form(), and update().

  • widget() – outputs the actual content of the widget.
  • update() – processes options to be saved.
  • form() – outputs the options form.

* The WP_Widget source can be viewed here (read the phpdoc for moreinfo on usage): http://core.trac.wordpress.org/browser/trunk/wp-includes/widgets.php
* You can see examples of how to use it here: http://core.trac.wordpress.org/browser/trunk/wp-includes/default-widgets.php

Here’s an execelent example of the widget.

, , , , , , , , ,

No Comments

Google maps code sample

This article is a sample for google maps. You just need to download the code here. In the example, I show Google Headquarters in Google Maps. But before you download, you need to sign up for Google Maps API here and get a key that you will use in the code. From the code that you have download, find the following code:

<script src=”http://maps.google.com/maps?file=api&amp;v=2&amp;key=change-this-to-your-google-api” type=”text/javascript”></script>

and change “change-this-to-your-google-api” to your key. If you have any problem just comment below.

, , , , , , , , , ,

No Comments