Skip to content

Commit

Permalink
fix: Add dpm_enabled query param to receipt URL
Browse files Browse the repository at this point in the history
  • Loading branch information
julianajlk committed Apr 10, 2024
1 parent e1b548d commit b60c260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/payment/PaymentPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class PaymentPage extends React.Component {

redirectToReceiptPage(orderNumber) {
logInfo(`Payment succeeded for edX order number ${orderNumber}, redirecting to ecommerce receipt page.`);
const queryParams = `order_number=${orderNumber}&disable_back_button=${Number(true)}`;
const queryParams = `order_number=${orderNumber}&disable_back_button=${Number(true)}&dpm_enabled=${true}`;
if (getConfig().ENVIRONMENT !== 'test') {
/* istanbul ignore next */
global.location.assign(`${getConfig().ECOMMERCE_BASE_URL}/checkout/receipt/?${queryParams}`);
Expand Down

0 comments on commit b60c260

Please sign in to comment.