You are on page 1of 2

Setup-->CSP Trusted Sites

1.
Site : imagelocation1
URL : *.staticflickr.com

2.
Site : Images
URL: *.force.com

Trusted Site for Scripts in Community Builder


Trusted Site Name : imagelocation1
Trusted Site URL:https://live.staticflickr.com/

Account to be created along with the contacts

United Coffee Bean Corp


1. First Name: Lauren
2. Last Name: Boyle
lboyle@unitedcoffee.org

1. First Name: Arthur


2. Last Name: Song
asong@unitedcoffee.org

Central Perc Coffee


1. First Name: John
2. Last Name: Bond
jbond@central.org

Repository for the sample code


https://github.com/forcedotcom/b2b-commerce-on-lightning-quickstart/tree/master/
examples/checkout/integrations/classes

1. B2BDeliverySample
2. B2BCheckInventorySample
3. B2BTaxSample
4. B2BPricingSample

Setup-->Security-->Remote Site Settings-->All Remote Sites

Remote Site Name: herokuapp


Remote Site URL: https://b2b-commerce-test.herokuapp.com

Query to get Salesforce record ids of the B2B Commerce Apex classes
select id,Name, Status from ApexClass where name like '%B2B%'

Command to be executed in Salesforce DEV Console


RegisteredExternalService serviceList1 = new
RegisteredExternalService(DeveloperName='CHECK_INVENTORY',MasterLabel='CHECK_INVENT
ORY',
ExternalServiceProviderType='Inventory',ExternalServiceProviderId='01p5i000000tYIvA
AM');
insert serviceList1;
RegisteredExternalService serviceList2 = new
RegisteredExternalService(DeveloperName='COMPUTE_SHIPPING',MasterLabel='COMPUTE_SHI
PPING',
ExternalServiceProviderType='Shipment',ExternalServiceProviderId='01p5i000000tYIqAA
M');
insert serviceList2;

RegisteredExternalService serviceList3 = new


RegisteredExternalService(DeveloperName='COMPUTE_TAXES',MasterLabel='COMPUTE_TAXES'
,
ExternalServiceProviderType='Tax',ExternalServiceProviderId='01p5i000000tYJ0AAM');
insert serviceList3;

RegisteredExternalService serviceList4 = new


RegisteredExternalService(DeveloperName='COMPUTE_PRICE',MasterLabel='COMPUTE_PRICE'
,
ExternalServiceProviderType='Price',ExternalServiceProviderId='01p5i000000tYJ5AAM')
;
insert serviceList4;

Query to check the Registered services


select DeveloperName, ExternalServiceProviderId, Id, MasterLabel from
RegisteredExternalService

You might also like