대리 주문은 주문에 대한 결제를 수령하고 Commerce Webstore 결제 토큰 및 Commerce Webstore Checkout 결제 API를 사용할 수 있습니다. 매장에서 이러한 API에 액세스할 수 있도록 하려면 StoreIntegratedService 엔티티를 사용하여 WebStore를 결제 게이트웨이와 연결합니다.
연결하는 사이트에 사용되는 기존 결제 게이트웨이의 결제 게이트웨이 ID를 가져옵니다.
sf data query --query
"SELECT Id, PaymentGatewayName, PaymentGatewayProviderId, Status
FROM PaymentGateway"
결제 게이트웨이가 토큰화 및 권한 부여를 지원하는지 확인합니다. 그렇지 않은 경우 업데이트가 필요합니다.
구성 중인 WebStore의 ID를 가져옵니다. 다중 통화 조직에 CurrencyIsoCode를 추가하여 올바른 ID를 가져옵니다.
sf data query --query
"SELECT Id, ExternalReference, Name, Type, DefaultTaxLocaleType
FROM WebStore"
StoreIntegratedService 엔티티를 만듭니다.
StoreIntegratedService sis = new StoreIntegratedService(
StoreId = '0ZERN00000009qu4AA', // WebStore Id (step 3)
Integration = '0b0RO000000009FYAQ', // Payment Gateway Id (step 1)
ServiceProviderType = 'Payment');
insert sis;
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.