Eric @ EricBess WebHome

Wins do not arrogant, not to lose hungry, there is shock chest and face, such as mine Pinghu

Chinese (Simplified) flagItalian flagKorean flagPortuguese flagEnglish flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroat flagDanish flagFinnish flagHindi flagPolish flagRumanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flagSlovenian flagUkrainian flagVietnamese flag
By N2H

Add to your blog to donate multi-currency functionality (including RMB)

To make their own blog sustainable development, it is necessary to be able to feed themselves.

Some time ago, to do a donor wordpress plugin WP-DONATORS, can support PAYPAL donation and multi-currency exchange rate for automatic conversion. And other donations button, it also has a background with PAYPAL API real-time communication, the return of payments data, and then the donor specified connection with the advertisements on the "donor cloud" showing up.

Followed by more background and support for the currency. First, the renminbi, paypal.com does not support the yuan, of course, the thought of "pay-Bao", but "pay-bao" to communicate their staff not to provide personal donation function.

Discovered the "PayPal" (that is paypal China) recently in October, he updated the cost of RMB policy, free of charge. Should pay attention to the "PayPal" paypal is specific to China's renminbi business, with Universal paypal.com account (foreign currency), so you must specifically for the "PayPal" registered account. Registration, "PayPal"

PayPal Sign up now and begin to accept credit card payments.

They just use the same paypal API so easy to add features yuan. When used in the background as long as the words "PayPal" account opened on the RMB. When the donor to use RMB for payment, the amount went to "PayPal" account, go to other currencies paypal account. You can use the credit card paypal.com to open foreign currency accounts to support multi-currency
Sign up for PayPal and start accepting credit card payments instantly.

Click to continue reading

November 12th, 2008 Posted by eric | WordPress, Web Technology | one comment

PayPal multi-currency support and the use of IPN

Paypal to receive the following support for the currency

Code Currency
AUD Australian Dollar
CAD Canadian Dollar
CHF Swiss Franc
CZK Czech Koruna
DKK Danish Krone
EUR Euro
GBP Pound Sterling
HKD Hong Kong Dollar
HUF Hungarian Forint
JPY Japanese Yen
NOK Norwegian Krone
NZD New Zealand Dollar
PLN Polish Zloty
SEK Swedish Krona
SGD Singapore Dollar
USD US Dollar

The use of multi-currency IPN

payment_gross and payment_fee: For non-US dollar payment, which is the value of the vacancy, so IPN script will not be such as the amount of dollars to deal with.

Multi-currency variables: For non-US dollar payment, IPN will add the following multi-currency variables, mc_gross and mc_fee
mc_gross: transaction fees deducted before the payment is received to pay the full amount of currency.
mc_fee: payment and paid currency-related transaction costs. Payment_fee similar to the variable function of the variables (such as the amount to be paid, the non-variable).
For rental IPN, such as registration, cancellation, modification, and the failure of EOT, mc_currency is the currency rates rather than monetary payment.

Click to continue reading

November 7th, 2008 Posted by eric | Web technology, financial and investment | no comments

WP-Donators Plugin (WP sponsor of the plug-in)

Plugin Name: WP-Donators (WP sponsor of the plug-in)
Author: Eric Wang
Stable Version: 1.0.9
Author URL: http://www.ericbess.com/ericblog/
Plugin URL: http://wordpress.org/extend/plugins/wp-donators/
Download: http://downloads.wordpress.org/plugin/wp-donators.zip

== Description ==

Wp-Donators provides a smart donation function to auto-leave the sponsor information in a container after payment. Sponsors can donate and submit name / URL or TextLink ad. The information of the latest donors are displayed in the Sponsors Cloud box. The more a person donations, the bigger their link will be.It 's will support most popular payment interface in future. ParPal Just the first one.

wordpress donor plug-in WP-DONATORS, multi-currency support PAYPAL donation and the exchange rate for automatic conversion. And other donations button, it also has a background with PAYPAL API real-time communication, the return of payments data, and then the donor specified connection with the advertisements on the "donor cloud" showing up.

== Depends On ==

  • If your haven't the paypal account so far.Please register paypal account: [PayPal Registration] first. Sign up for PayPal and start accepting credit card payments instantly.
  • PHP5, Openssl, fsock.

Click to continue reading

October 21st, 2008 Posted by eric | WordPress | 33 comments

Through PayPal to be converted into U.S. dollars in cash cash

China is the country's exchange rate control, residents in the hands of U.S. dollar cash can be converted to cash and cash yuan, U.S. dollars in cash and cash is very difficult to Renminbi converted to U.S. dollars cash, I introduced a method, you can not make the U.S. Users also have the dollar cash account.

First of all, is to explain U.S. dollars in cash and cash difference in our country, the residents of foreign currency savings deposits in two accounts: cash and cash family households. Notes referring to the foreign currency notes and coins or bank notes, coins into the bank by deposits generated. Refers to cash the check, remittance, collection and other international clearing the way for the formation and made bank deposits. Foreign currency cash can only be shipped to foreign countries to pay to play role in domestic law is to prohibit the payment of. According to the management of the relevant provisions of the State Administration of Foreign Exchange, cash can not be replaced by cash. Personal foreign exchange trading in note-issuing bank notes change, change Department of Health. The national foreign exchange management policy is to encourage the holding cash, cash holding limit, because as cash on the books than cash funds more user-friendly management of foreign exchange.

As the U.S. dollar spot exchange the RMB higher than that of U.S. dollars in cash and in the flow of transactions and convenience than cash, it is generally recommended cash deposits in U.S. dollars will not receive cash for, so as not to allow the hands of foreign exchange devaluation. Will be in the hands of U.S. dollars in cash into a spot, can make their own foreign exchange revaluation, there is a way to cash in cash achieve the function of the realization of our cash in the hands of the U.S. "escalation" for U.S. cash.

A precondition is that China Merchants Bank has a credit card, credit card and the opening of accounts international PayPal.COM.
Sign up for PayPal and start accepting credit card payments instantly.

First, use PayPal and then sign up for an account of the same name, this time, cash in U.S. dollars will be deposited into the bank China Merchants Bank's credit card and the card associated with the switch to a dollar account to another PayPal account of the same name, and the amount of credit card into the The same, in that account, by check or wire transfer of the collection methods, be patient for a period of time, send a check to the bank after the check collection, the success of the collection, deposit cash into the U.S. is, and this realization The cash is converted to U.S. dollars cash.

Click to continue reading

August 25th, 2008 Posted by eric | Life | no comments

PHP Paypal IPN Class

NEW VERSION

I rewrite the class, release the Version: 1.3.1
v1.3.1 [06.25.2008] - more strict ipn validation, ssl fsockopen (), sandbox option.

Donate for this class development, Thanks!

This free PHP script provides a simple method to interface with paypal and the paypal Instant Payment Notification (IPN) system. It is not a complete system but a single PHP class allowing the PHP developer more control. Included in the zip file is a demonstration PHP script called paypal.php which shows the basic usage of the class.


This class handles the submission of an order to paypal as well as the processing an Instant Payment Notification (IPN). Including the demonstration file, the entire "paypal system" consists of just 2 PHP scripts. Once is the class and one implements the class .

Original Author: Micah Carrick
Website: http://www.micahcarrick.com

UPDATE DESCRIPTION

More Strict IPN Validation: add ipn_status and receiver mail validation.

  • $ p-> ipn_status / / get the ipn validation status detial.

SSL fsockopen (): change the fsockopen http (80) to ssl (443) / / paypal ipn (80) support unstable.

Sandbox Option: Create a "sandbox" account for a buyer and a seller. This is just a test account (s) that allow you to test your site from both the seller and buyer perspective. The instructions for this is available at https: / / developer.paypal.com / as well as a great forum where you can ask all your paypal integration questions. Make sure you follow all the directions in setting up a sandbox test environment, including the addition of fake bank accounts and credit cards.

  • $ p = new paypal_class (true); / / open sandbox
  • $ p = new paypal_class (false); / / live use

Click to continue reading

June 27th, 2008 Posted by eric | Coding, Web technology | no comments

PayPal IPN process

PAYPAL instant payment notification (IPN) is used PayPal to identify and deal with real-time purchase of server to server communications interface. IPN send the PayPal payment you receive immediate notification and confirmation, and provide payments to be, has been canceled or failure of the state of transactions and other data.

IPN can be used to customize a variety of management and the opening of PayPal's API and communications, including:

  • Custom Web site for customers shopping in real time back
  • Through IPN "transmit" variable to track customers
  • To download the software and other digital products, the distribution of key visit
  • Automatically carry out operations
  • Partners to track sales and commissions
  • In your own database to store information on the transaction

PayPal Sign up now and begin to accept credit card payments.

Search variable

Carried out after the payment, PayPal will be sent to POST through PayPal server notify_url variables specified in the notice sent URL. The script is above the designated paypal_ipn_handler.php, so the creation of this document, and as such the following definition of it:

? View Code PHP
 1 
 2 
 3 
 4 
 5 
 6 
 7 
 8 
 9 
 10 
 11 
 12 
 13 
  <? Php 
  'includes/user_functions.php' ) ; include ( 'includes / user_functions.php'); 
  'includes/shared_functions.php' ) ; include ( 'includes / shared_functions.php'); 

  / / Assign posted variables to local variables 
  $_POST [ 'payment_status' ] ; $ payment_status = $ _POST [ 'payment_status']; 
  $_POST [ 'mc_gross' ] ; $ amountDue = $ _POST [ 'mc_gross']; 
  $_POST [ 'txn_id' ] ; $ txn_id = $ _POST [ 'txn_id']; 
  $_POST [ 'mc_currency' ] ; $ payment_currency = $ _POST [ 'mc_currency']; 
  $_POST [ 'custom' ] ; $ cartid = $ _POST [ 'custom']; 
  $_POST [ 'business' ] ; $ my_email = $ _POST [ 'business']; 
  $_POST [ 'payer_email' ] ; $ email = $ _POST [ 'payer_email']; 
  ... 

First of all, through PayPal to send POST over an important variable in the preservation of local variables.

Verify payment

To pay for a way to verify is: to collect from PayPal to send over the variables and send them through the re-POST. Continue to define paypal_ipn_handler.php, add the following code:

Click to continue reading

June 15th, 2008 Posted by eric | Coding | no comments

2 » Page 1 of 2 1 2 »