Class BraintreeClientTokenEndpoint
java.lang.Object
com.broadleafcommerce.braintree.web.endpoint.BraintreeClientTokenEndpoint
@FrameworkRestController
@FrameworkMapping("/braintree/client-token")
public class BraintreeClientTokenEndpoint
extends Object
Endpoint for generation Client Token.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBraintreeClientTokenEndpoint
(BraintreeClientTokenService braintreeClientTokenService) -
Method Summary
Modifier and TypeMethodDescriptionprotected BraintreeClientTokenService
org.springframework.http.ResponseEntity<BraintreeGenerateTokenResponse>
getClientToken
(CustomerRef customerRef, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
BraintreeClientTokenEndpoint
-
-
Method Details
-
getClientToken
@FrameworkPostMapping(produces="application/json") @Policy(permissionRoots="BRAINTREE_CLIENT_TOKEN") public org.springframework.http.ResponseEntity<BraintreeGenerateTokenResponse> getClientToken(CustomerRef customerRef, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
getBraintreeClientTokenService
-