• 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

    (@edward_plainview)

    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

    (@ilan76)

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom API Call on Payment’ is closed to new replies.