dw.order.OrderPaymentInstrument
- If the method call happens in the context of a storefront request and the current customer is identical to the customer related to the basket or order, and the current protocol is HTTPS.
- If the method call happens in the context of the business manager and the current user has permission to the Orders module.
- If the method call happens in the context of a storefront request and the current customer is identical to the customer related to the basket or order, and the current protocol is HTTPS.
- If the method call happens in the context of the business manager and the current user has permissions to the Orders module.
- If the method call happens in the context of a storefront request and the current authenticated customer is referenced by the basket or order, and the current protocol is HTTPS.
- If the customer is anonymous, and the order references this customer, and the protocol is secure and the order status is CREATED.
- If the method call happens in the context of the business manager and the current user has the permission to manage orders.
- If the payment information has not been masked as a result of the data retention security policy for the site.
Returns the payment details for this payment instrument, or null if none are available.
Payment details are differentiated by their type. Some payment types like SalesforcePaymentDetails.TYPE_CARD contain additional details like the card brand, or the last 4 digits of the card number. Details to those payments will be of a specific subclass like SalesforceCardPaymentDetails. Other payment types have no additional information so their details are represented by an object of the base type.
Payment details contain information about the method and credentials for a payment before any attempt to authorize or capture a payment amount. Some of that information may be relevant to the payer and is appropriate to present on an order confirmation or order history page, as well as in an order confirmation email. Other information may only be important for auditing or fraud check purposes and need not be presented to the payer.
- If the method call happens in the context of a storefront request and the current customer is identical to the customer related to the basket or order, and the current protocol is HTTPS.
- If the method call happens in the context of a storefront request and the current customer is identical to the customer related to the basket or order, and the current protocol is HTTPS.
- If the method call happens in the context of a storefront request and the current authenticated customer is referenced by the basket or order, and the current protocol is HTTPS.
Returns the payment details for this payment instrument, or null if none are available.
Sets the payment details for this payment instrument.
- If the method call happens in the context of a storefront request and the current customer is identical to the customer related to the basket or order, and the current protocol is HTTPS.
- If the method call happens in the context of the business manager and the current user has permission to the Orders module.
- If the method call happens in the context of a storefront request and the current customer is identical to the customer related to the basket or order, and the current protocol is HTTPS.
- If the method call happens in the context of the business manager and the current user has permissions to the Orders module.
- If the method call happens in the context of a storefront request and the current authenticated customer is referenced by the basket or order, and the current protocol is HTTPS.
- If the customer is anonymous, and the order references this customer, and the protocol is secure and the order status is CREATED.
- If the method call happens in the context of the business manager and the current user has the permission to manage orders.
- If the payment information has not been masked as a result of the data retention security policy for the site.
Returns the payment details for this payment instrument, or null if none are available.
Payment details are differentiated by their type. Some payment types like SalesforcePaymentDetails.TYPE_CARD contain additional details like the card brand, or the last 4 digits of the card number. Details to those payments will be of a specific subclass like SalesforceCardPaymentDetails. Other payment types have no additional information so their details are represented by an object of the base type.
Payment details contain information about the method and credentials for a payment before any attempt to authorize or capture a payment amount. Some of that information may be relevant to the payer and is appropriate to present on an order confirmation or order history page, as well as in an order confirmation email. Other information may only be important for auditing or fraud check purposes and need not be presented to the payer.
null if none are available
Sets the payment details for this payment instrument. Set null to clear them.
Payment details are differentiated by their type. The caller is responsible to set payment details of a type appropriate to the payment method and its credentials. Some payment types like SalesforcePaymentDetails.TYPE_CARD contain additional details like the card brand, or the last 4 digits of the card number. To set the details to those payments, use a specific subclass like SalesforceCardPaymentDetails. To set details for other payment types that have no additional information, use the base class SalesforcePaymentDetails.
null to clear them