Simple PayPal Payment

plugin banner

Integrates PayPal checkout into WordPress.

Author:Katsushi Kawamori (profile at wordpress.org)
WordPress version required:4.7
WordPress version tested:5.8.1
Plugin version:2.03
Added to WordPress repository:28-12-2018
Last updated:03-11-2021
Rating, %:0
Rated by:0
Plugin URI:https://wordpress.org/plugins/simple-paypal-p...
Total downloads:1 540
Active installs:40+
plugin download
Click to start download

Integrates PayPal checkout into WordPress.

  • Paste PayPal checkout button to Single Post and Single Page by short code.
  • Paste PayPal checkout button to Single Post and Single Page by block.
  • Paste PayPal checkout button to Archive Page and Home Page by widget.
  • Complete payment without screen transition.
  • Can customize the PayPal checkout button.
  • Can specify the text or html before payment and after payment.
  • Can remove html elements to after payment.
  • Prepared a filter hook for processing immediately after billing.

Tutorial Video

Sample of how to use the filter hook

  • Show button
echo do_shortcode('[simplepaypalpayment size="medium" amount=20 currency="USD" email="test@test.com" payname="testpay"]');
  • shortcode
    Attribute : Description
    locale : Supported locale codes
    size : Button styles
    color : Button styles
    shape : Button styles
    label : Button styles
    amount : Price
    currency : Currency Codes
    before : Display before payment
    after : Display after payment
    remove : HTML elements to remove after payment
    remove2 : HTML elements to remove after payment
    email : Email
    payname : Unique name for this payment
  • Filter hook & Function
/** ==================================================
 * Filter of Simple PayPal Payment
 *
 * @param string $data  data.
 * @param string $payment_data  payment_data.
 * @param string $email  email.
 * @param int    $amount  amount.
 * @param string $currency  currency.
 * @param string $payname  payname.
 */
function paypal_charge( $data, $payment_data, $email, $amount, $currency, $payname ) {

    /* Please write the process to be done when billing succeeds. */
    if ( 'testpay' === $payname ) {
        update_option( 'testpay_paypal', 'paypal' . $payname . $amount . $currency );
    }

}
add_filter( 'simple_paypal_payment_charge', 'paypal_charge', 10, 6 );
  • Filter hook
    Variable : Description : From
    $data : Payment information by JSON : Value of PayPal
    $payment_data : Payment information by JSON : Value of PayPal
    $email : Email : Value of Simple PayPal Payment
    $amount : Price : Value of Simple PayPal Payment
    $currency : Currency Codes : Value of Simple PayPal Payment
    $payname : Unique name for this payment : Value of Simple PayPal Payment

Screenshots
FAQ
ChangeLog