Create payment action

This action lets you create a payment via the Easy Digital Downloads integration. Use it to automate you daily work ans 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 a membership was cancelled via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a user has logged in 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 Divi Logo for our WP Webhooks integration Divi, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a paid 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 post was deleted 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 user was deleted via The WordPress Logo for our integration WordPress, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When an ACF term field was updated via The Advanced Custom Fields Logo for our WP Webhooks integration Advanced Custom Fields, 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 course access was removed 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 a user was updated via The WP User Manager Logo for our WP Webhooks integration WP User Manager, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a lesson was completed 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 a membership was paused via The WooCommerce Memberships Logo for our WP Webhooks integration WooCommerce Memberships, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a profile photo was removed via The WP User Manager Logo for our WP Webhooks integration WP User Manager, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a course was completed 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 a comment was trashed 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 free 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 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 enrolled into 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 topic was created via The bbPress Logo for our WP Webhooks integration bbPress, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a license was activated via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, create a payment via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a Microsoft Power Automate webhook request was received via The Microsoft Power Automate Logo for our WP Webhooks integration Microsoft Power Automate, 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.