in my suite commerce theme template order.wizard.c...
# ask-stanley-ai
e
in my suite commerce theme template order.wizard.confirmation how can I access the payment information to show what credit card was just used for the sales order just created
c
AI generated answer (using internal Slack threads):
In order to access the payment information in your SuiteCommerce theme template
order.wizard.confirmation
, you would need to use the
getPaymentInfo
method from the
OrderWizardModulePaymentMethod
module. This method returns an object that contains the payment method information, including the credit card used for the sales order. Here is a sample code snippet on how you can use this method:
Copy code
javascript
var OrderWizardModulePaymentMethod = require('OrderWizard.Module.PaymentMethod');
var paymentInfo = OrderWizardModulePaymentMethod.getPaymentInfo();

console.log(paymentInfo.creditcard);
This will log the credit card information used in the payment. Please note that this information might be sensitive and should be handled with care. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823518336
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813116789
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.812846
Please provide your feedback on this answer.