Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
renintw committed May 24, 2024
1 parent 82f4e01 commit 8181f66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 8181f66

Please sign in to comment.