From 8181f667e75bceef42b69d9c499eaa55da8e5132 Mon Sep 17 00:00:00 2001 From: ren <18050944+renintw@users.noreply.github.com> Date: Fri, 24 May 2024 22:44:54 +0900 Subject: [PATCH] Add comment. --- public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php b/public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php index e568da843..e536229fd 100644 --- a/public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php +++ b/public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php @@ -493,6 +493,10 @@ protected static function build_qbo_create_invoice_request( int $invoice_id ) { * for the first time, so we don't need any code to automatically activate them. */ if ( 'USD' != $currency_code ) { + /* + * Fetch currency exchange rates from QBO. + * No caching implemented since QBO updates rates every 4 hours and API calls are only triggered on invoice approval. + */ $response = wp_remote_get( sprintf( '%s/v3/company/%d/exchangerate?sourcecurrencycode=%s',