Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Checkout/CheckoutUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class CheckoutUtils
{

const PROJECT_NAME = "checkout-sdk-php";
const PROJECT_VERSION = "6.3.0";
const PROJECT_VERSION = "6.4.0";

/**
* @param DateTime $date
Expand Down
10 changes: 7 additions & 3 deletions test/Checkout/Tests/Accounts/AccountsIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,12 @@ private function buildOnboardCompanyRequest()
$onboardEntityRequest->contact_details->phone = $phone;
$onboardEntityRequest->contact_details->email_addresses = $emailAddresses;

// The holding currency scope is configured on the platform (USD here), while the
// processing_details currency reflects the sub-entity region (GBP); they are independent.
// Every currency on this request has to sit inside the platform's currency scope, which is
// USD only. This previously set the processing_details currency to GBP on the theory that
// the profile reflects the platform while processing details reflect the sub-entity region,
// and that the two are independent. The API rejects that with
// processing_details_currency_invalid_for_currency_scope. Widening the profile to GBP
// instead is also rejected, because the scope itself does not permit GBP.
$onboardEntityRequest->profile = new Profile();
$onboardEntityRequest->profile->urls = array("https://www.example-test-entity.com");
$onboardEntityRequest->profile->mccs = array("0742");
Expand Down Expand Up @@ -428,7 +432,7 @@ private function buildProcessingDetails()
$processingDetails->annual_processing_volume = 1000000;
$processingDetails->average_transaction_value = 5000;
$processingDetails->average_order_fulfillment_time = 3;
$processingDetails->currency = Currency::$GBP;
$processingDetails->currency = Currency::$USD;
$processingDetails->target_countries = array(Country::$GB);
$processingDetails->payments = $payments;

Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "6.3.0"
"version": "6.4.0"
}
Loading