Title: Custom API Call on Payment
Last modified: October 12, 2021

---

# Custom API Call on Payment

 *  [ilan76](https://wordpress.org/support/users/ilan76/)
 * (@ilan76)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/custom-api-call-on-payment/)
 * Hi,
 * Is it possible to add a simple API request on Payment with custom data like price,
   wallet address, contract address, etc., **instead **of the plugin’s set fields?
   Can you guide where it’s located in the code?
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [edward_plainview](https://wordpress.org/support/users/edward_plainview/)
 * (@edward_plainview)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/custom-api-call-on-payment/#post-14962170)
 * Look in the src / ecommerce / woocommerce / woocommerce.php file
 * There is an action for you to hook in to: mycryptocheckout_complete_payment
 * It works in conjunction with the src / ecommerce / ecommerce.php file
 * do_with_payment_action
 * The price and wallet address you’ll have to extract from the order.
 * The contract address is per currency, so you’ll first have to look up the currency
   from the order and then search through MyCryptoCheckout()->currencies().
 *  Thread Starter [ilan76](https://wordpress.org/support/users/ilan76/)
 * (@ilan76)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/custom-api-call-on-payment/#post-14962458)
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom API Call on Payment’ is closed to new replies.

 * ![](https://ps.w.org/mycryptocheckout/assets/icon.svg?rev=1869074)
 * [MyCryptoCheckout - Bitcoin, Ethereum, and 100+ altcoins for WooCommerce](https://wordpress.org/plugins/mycryptocheckout/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mycryptocheckout/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mycryptocheckout/)
 * [Active Topics](https://wordpress.org/support/plugin/mycryptocheckout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mycryptocheckout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mycryptocheckout/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ilan76](https://wordpress.org/support/users/ilan76/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/custom-api-call-on-payment/#post-14962458)
 * Status: not resolved