Create payment action

This action lets you create a payment via the Easy Digital Downloads integration. Use it to automate you daily work and save time and resources.

How to create a payment

This section aims to help you getting started on how to create a payment via Easy Digital Downloads. Simply select one of your prefered automation manuals down below and start automating your WordPress website in no time.

"Create payment" arguments

Our so-called arguments are values that you can use to customize your request. They allow you to send specific data to the Create payment action which is then handled accordingly to the described purpose. You can use the arguments that you would like to send values for.
To learn more about it, please see the Setup Guide above.
customer_email *

(String) The email of the customer you want to associate with the payment. Please see the description for further details.

discounts

(String) A comma-separated list of discount codes. Please see the description for further details.

gateway

(String) The slug of the currently used gateway. Please see the description for further details. Default empty.

currency

(String) The currency code of the payment. Default is your default currency. Please see the description for further details.

parent_payment_id

(Integer) The payment id of a parent payment.

payment_status

(String) The status of the payment. Default is "pending". Please see the description for further details.

product_data

(String) A JSON formatted string, containing all the product data and options. Please refer to the description for examples and further details.

edd_agree_to_terms

(String) Defines if a user agreed to the terms. Set it to "yes" to mark the user as agreed. Default: no

edd_agree_to_privacy_policy

(String) Defines if a user agreed to the privacy policy. Set it to "yes" to mark the user as agreed. Default: no

payment_date

(String) Set a custom payment date. The format is flexible, but we recommend SQL format.

user_id

(Integer) The user id of the WordPress user. If not defined, we try to fetch the id using the customer_email.

customer_first_name

(String) The first name of the customer. Please see the description for further details.

customer_last_name

(String) The last name of the customer. Please see the description for further details.

customer_country

(String) The country code of the customer.

customer_state

(String) The state of the customer.

customer_zip

(String) The zip of the customer.

send_receipt

(String) Set it to "yes" for sending out a receipt to the customer. Default "no". Please see the description for further details.

do_action

Advanced: Register a custom action after WP Webhooks fires this webhook. More infos are in the description.

wpwh_call_action

(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )

Connection examples

Get inspired on how to use the "Create payment" action within our Easy Digital Downloads integrations. Down below you will find various examples with our other integrations.
When one or multiple tags have been added to a contact via The Autonami Logo for our WP Webhooks integration Autonami, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When the page cache was cleared via The Cache Enabler Logo for our WP Webhooks integration Cache Enabler, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a course access was granted via The LearnDash Logo for our WP Webhooks integration LearnDash, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When an order was restored via The Woocommerce Logo for our integration WooCommerce, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a form was submitted via The Fluent Forms Logo for our WP Webhooks integration Fluent Forms, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When an entry was approved via The GravityKit Logo for our WP Webhooks integration GravityKit, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a user was logged out via The WordPress Logo for our integration WordPress, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a form was submitted via The Newsletter Logo for our WP Webhooks integration Newsletter, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a IFTTT webhook request was received via The IFTTT Logo for our WP Webhooks integration IFTTT, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a paid membership was cancelled via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a user completed a course via The WP Courseware Logo for our WP Webhooks integration WP Courseware, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a customer was deleted via The Woocommerce Logo for our integration WooCommerce, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When the cache was cleared via The WP Super Cache Logo for our WP Webhooks integration WP Super Cache, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When an order was deleted via The Woocommerce Logo for our integration WooCommerce, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a contact was deleted via The FluentCRM Logo for our WP Webhooks integration FluentCRM, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a project was approved via The ProjectHuddle Logo for our WP Webhooks integration ProjectHuddle, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a booking was added via The Amelia Logo for our WP Webhooks integration Amelia, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a free membership was activated via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a lesson was completed via The Tutor LMS Logo for our WP Webhooks integration Tutor LMS, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When the CSS/JS cache was cleared via The LiteSpeed Cache Logo for our WP Webhooks integration LiteSpeed Cache, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a lesson was completed via The WordPress Logo for our integration WordPress, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.

More available Easy Digital Downloads endpoints

Discover more of the available endpoints used for the Easy Digital Downloads integration.
To learn more about a specific endpoint, simply click on it.
Full disclosure: When clicking on some of the links on our website and purchasing the related product and/or service, we may earn a commission free of any additional cost for you.