Pay Invoices With Amazon

Pay Invoices With Amazon

Wordpress plugin

Install on Wordpress

App Details

The PIWA plugin by Zeek is a simple and effective way to incorporate Amazon Pay into your website.

The plugin includes:
Seamless Integration with the WordPress block editor.
Enhanced Security by leveraging Amazon’s proven payment processing infrastructure.
One-Click Checkout for customers who want a fast and simple payment experience.

Please ensure that your WordPress installation meets the required PHP version (5.6 or higher) and WordPress version (5.6 or higher). Visit our GitHub repository for further details, documentation, and support.

Creating Invoices

To create invoices, add either the Adjustable Price or Fixed Price block to a page or post:

  1. Navigate to the page or post where you want to add the payment block.
  2. Click on the + button or type / to add a new block.
  3. Search for Adjustable Price or Fixed Price in the block library.
  4. Click on the block to add it to your page or post.

Once the block is added, you can either email a link to that page to a customer or include a link in an invoice sent from your accounting software of choice, such as QuickBooks, Xero, Zoho, FreshBooks, or Harvest.

The customer will need to have or create an Amazon account to make the payment. Once the payment is made, it will be processed by Amazon and the funds will be transferred to your linked bank account.

For more information on how to set up and manage your Amazon Pay account, please refer to the Amazon Pay Help Center.

Receiving Payments

To receive payments, connect the plugin to your Amazon Pay account using one of the methods the under WP Admin > Pay Invoices With Amazon > Settings:

  1. Connect Automatically: This is the easiest and most secure. Click the Connect Amazon Pay Account button to log in with your Amazon account and have credentials configured automatically.
  2. Send Public Key: Copy-and-paste a plugin-generated Public Key into Amazon Integration Central, then copy-and-paste the returned Public Key ID.
  3. Receive Private Key: Generate a Private Key in Amazon Integration Central, then drag-and-drop the downloaded file onto the Settings field and copy-and-paste the Public Key ID.

Once payments are processed, individual payments will be authorized by Amazon within 24 hours. After that period, click the linked “Reference ID” for the payment to go to Seller Central. Clicking “Collect Payment” in Seller Central will transfer the authorized funds.

Further information can be found at Finding your Amazon Pay keys and IDs and in the GitHub repository.

Using as a Shortcode

While the blocks provide a visual preview if using the WordPress block editor, a shortcode is also available for use in the block editor, classic editor, or various layout plugins. The below examples can be copy-and-pasted for testing or custom configuration:

Payment form where customer sets the amount:

[piwa] 

Payment button where the amount is $100.50:

[piwa 100.50] 

Payment button where the amount is $100.50 and the title is Business Consulting:

[piwa 100.50 "Business Consulting"] 

Payment button where the customer sets the amount and inputting an invoice reference number is required:

[piwa input-invoice] 

Long-form to display a payment button set to $100.50 for Business Consulting:

[piwa amount="100.50" title="Business Consulting"] 

Developer Notes

piwa() can be called with an array of arguments in plugins, mu-plugins, templates, or a theme’s functions.php.

The below example adds payment buttons of various types at the end of Post content if various Categories are assigned.

The existance of Plugin Name: makes it possible to place it in wp-content/plugins/ or a folder within wp-content/plugins to activate or deactivate within WP Admin > Plugins . If placing within a theme’s functions.php or another file that already opens with <?php , the first line <?php should be removed to avoid errors.

<?php /** * Plugin Name: Pay Based on Category * Description: Display a message with payment buttons on Posts depending on assigned Category. If all the categories are assigned, all the buttons and messages will be added. * Version: 1.0 * * @see https://developer.wordpress.org/reference/hooks/the_content/ * @see https://developer.wordpress.org/reference/functions/is_singular/ * @see https://developer.wordpress.org/reference/functions/has_category/ * @see https://www.php.net/manual/en/function.function-exists.php */ add_filter( 'the_content', function( $content ) { // If the PIWA plugin is not active or this is not a singular template of the "post" post type, do not modify the content. if ( ! function_exists( 'piwa' ) || ! is_singular( [ 'post' ] ) ) { return $content; } // If the post is in category Uncategorized, append a pay button where the user specifies the amount. if ( has_category( 'Uncategorized' ) ) { $content .= '<p>Thanks for reading!<br/>If you feel inclined to contribute, please use the form below.</p>' . piwa(); } // If the post is in category Pay it Forward, append a pay button for $7.00 labeled "Pay it Forward". if ( has_category( 'Pay it Forward' ) ) { $content .= '<p>Thanks for reading!<br/>If you enjoyed this post, please pay it forward with a small donation:</p>' . piwa([ 'amount' => 7.00, 'title' => 'Pay it Forward', ]); } // If the post is in category Invoice, append a pay button where the customer inputs an Invoice Number and amount. if ( has_category( 'Invoice' ) ) { $content .= '<p>Thank you for your business!<br/>To make a payment, please input an amount and the associated invoice number:</p>' . piwa([ 'show_customer_invoice_input' => true, ]); } return $content; }, 10 // Default priority is 10. The latest possible priority is PHP_INT_MAX. Attaching to a priority lower than 10 may cause other filters, such as wpautop, to add paragraph tags incorrectly. ); 

Plugin Settings

Settings can be reset with:

wp option delete piwa 

Settings can also be hard-coded with the follow script, preferably placed in wp-content/mu-plugins/:

<?php /** * Where to find keys & IDs: * @see https://pay.amazon.com/help/202022560 */ foreach( [ 'sandbox_mode' => 1, 'merchant_id' => '', 'client_id_store_id' => '', 'public_key_id' => '', ] as $key => $value ) { putenv( sprintf( 'piwa_%s=%s', $key, $value ) ); } 

Third-Party Services

Pay Invoices with Amazon integrates with Amazon Payments to process invoice payments made through the plugin.
Third-Party Service Links and Policies

  • Amazon Payments Terms of Service: https://pay.amazon.com/help/201212430
  • Amazon Payments Privacy Policy: https://pay.amazon.com/help/201212490

By using the plugin, you acknowledge and consent to the use of Amazon Payments for payment processing. We ensure that all data transmissions are secure and in compliance with legal standards.

Pricing

Starting from $0 per month.

Check Out the Google Reviews Widget

By Common Ninja

Google ReviewsTry For Free!

App Info

Rating

Reviewers

No reviews

Tags

checkout
ecommerce
online payments
payments

Developed By

Steve Zehngut

Quick & Easy

Find the Best Wordpress plugins for you

Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!

Testimonial

Testimonial plugins for Wordpress

Galleries

Galleries plugins for Wordpress

SEO

SEO plugins for Wordpress

Contact Form

Contact Form plugins for Wordpress

Forms

Forms plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Sliders

Sliders plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Comments

Comments plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Maps

Maps plugins for Wordpress

Security

Security plugins for Wordpress

Translation

Translation plugins for Wordpress

Ads

Ads plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Music Player

Music Player plugins for Wordpress

Backup

Backup plugins for Wordpress

Privacy

Privacy plugins for Wordpress

Optimize

Optimize plugins for Wordpress

Chat

Chat plugins for Wordpress

Countdown

Countdown plugins for Wordpress

Email Marketing

Email Marketing plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Membership

Membership plugins for Wordpress

popup

popup plugins for Wordpress

SiteMap

SiteMap plugins for Wordpress

Payment

Payment plugins for Wordpress

Coming Soon

Coming Soon plugins for Wordpress

Ecommerce

Ecommerce plugins for Wordpress

Customer Support

Customer Support plugins for Wordpress

Inventory

Inventory plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Testimonials

Testimonials plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Slider

Slider plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Membership

Membership plugins for Wordpress

Forms

Forms plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Contact

Contact plugins for Wordpress

Comments

Comments plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Common Ninja Apps

Some of the best Common Ninja plugins for Wordpress

Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.

Google Reviews for Wordpress logo

Google Reviews

Show verified customer feedback with Google Reviews to build trust, strengthen credibility, and help visitors make confident purchase decisions.

Facebook Feed for Wordpress logo

Facebook Feed

Show Facebook posts in a live Facebook feed that keeps content fresh, boosts social proof, and helps visitors engage more with your brand.

PayPal Button for Wordpress logo

PayPal Button

Offer customers a trusted way to pay using PayPal through a PayPal Button that reduces checkout friction and supports higher sales.

Glossary for Wordpress logo

Glossary

Create an interactive glossary that displays clear definitions, images, and search options to help visitors learn terms quickly and navigate complex topics with ease.

TikTok Slider for Wordpress logo

TikTok Slider

Show TikTok videos with a TikTok slider that displays clips in an engaging, customizable slideshow to boost visibility and keep visitors watching.

Feedback Popup for Wordpress logo

Feedback Popup

Collect user insights with a feedback popup that reveals issues early, improves user experience, and captures valuable leads through a clear feedback form.

Social Media & RSS Feeds for Wordpress logo

Social Media & RSS Feeds

Add social media and RSS feeds to your site to display fresh content, grow your online presence, and keep visitors engaged with real time updates.

Sticky Video for Wordpress logo

Sticky Video

Use a sticky video that stays visible while users scroll to keep content in view, increase watch time, and boost engagement.

AI Chatbot for Wordpress logo

AI Chatbot

Add an AI chatbot that answers user questions by crawling your site, using uploaded content, and collecting chat interactions.

Scroll to Top for Wordpress logo

Scroll to Top

A scroll to top button that helps visitors move back to the top of long pages quickly, improving navigation and overall browsing flow.

Event Listings for Wordpress logo

Event Listings

Create event listings with an events board widget that displays upcoming activities clearly, helps visitors discover events, and supports easy management.

Job Application Form for Wordpress logo

Job Application Form

Collect candidate information with a job application form that organizes submissions, streamlines hiring, and helps you manage applicants efficiently.

Discover Apps By Platform

Discover the best apps for your website

WordPress
Wix
Shopify
Weebly
Webflow
Joomla
PrestaShop
Shift4Shop
WebsiteX5
MODX
Opencart
NopCommerce

Common Ninja Search Engine

The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!

Multiple platforms