ExamGecko
Question list
Search
Search

List of questions

Search

Question 230 - Certified B2B Commerce Administrator discussion

Report
Export

Which three actions must a developer take, in a B2B Commerce store, to accept credit card payments using a client's chosen payment provider?

A.
Create a named credential for authentication with the payment provider.
Answers
A.
Create a named credential for authentication with the payment provider.
B.
Create a RegisteredExternalService record for the custom payment provider class.
Answers
B.
Create a RegisteredExternalService record for the custom payment provider class.
C.
Create an Apex class that implements the sfdc_checkout.PaymentGatewayAdapter.
Answers
C.
Create an Apex class that implements the sfdc_checkout.PaymentGatewayAdapter.
D.
Create a PaymentProviderGateway record for the custom payment provider class.
Answers
D.
Create a PaymentProviderGateway record for the custom payment provider class.
E.
Create an Apex class that implements the commercepayments.PaymentGatewayAdapter.
Answers
E.
Create an Apex class that implements the commercepayments.PaymentGatewayAdapter.
Suggested answer: A, C, E

Explanation:

To accept credit card payments using a client's chosen payment provider, a developer must take the following three actions in a B2B Commerce store:

Create a named credential for authentication with the payment provider. A named credential is a Salesforce feature that defines the URL of a callout endpoint and its required authentication parameters.By creating a named credential for the payment provider, the developer can securely store the credentials and use them in Apex code without hardcoding them1.

Create an Apex class that implements the commercepayments.PaymentGatewayAdapter interface. This interface defines the methods that a custom payment provider class must implement to process credit card payments in B2B Commerce.The developer must implement the methods such as authorize, capture, refund, and void to handle the payment transactions with the payment provider's API2.

Create a PaymentProviderGateway record for the custom payment provider class. This record is a custom metadata type that defines the properties of the payment provider, such as its name, label, description, and Apex class name.By creating this record, the developer can register the custom payment provider class with B2B Commerce and make it available for selection in the Payment Gateway Settings page3.Reference:1: Named Credentials - Trailhead4,2: Implementing Custom Payment Providers - Salesforce Developers Blog5,3: Integrate Payments into a B2B Commerce Store with Ease - Salesforce Developers Blog6

asked 23/09/2024
Nelson Alvaro
49 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first