Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ const CheckoutOneClick = () => {
const [expirationMonth, expirationYear] = formValue.expiry.split('/')

const paymentInstrument = {
amount: basket?.orderTotal || 0,
paymentMethodId: 'CREDIT_CARD',
paymentCard: {
holder: formValue.holder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ describe('Checkout One Click', () => {
rest.post('*/baskets/:basketId/payment-instruments', (req, res, ctx) => {
currentBasket.paymentInstruments = [
{
amount: 0,
amount: 100,
paymentCard: {
cardType: 'Master Card',
creditCardExpired: false,
Expand Down Expand Up @@ -1137,6 +1137,7 @@ describe('Checkout One Click', () => {
const basketWithPayment = JSON.parse(JSON.stringify(scapiBasketWithItem))
basketWithPayment.paymentInstruments = [
{
amount: 100,
paymentMethodId: 'CREDIT_CARD',
paymentCard: {
cardType: 'Visa',
Expand All @@ -1153,6 +1154,7 @@ describe('Checkout One Click', () => {
...scapiOrderResponse,
paymentInstruments: [
{
amount: 100,
paymentMethodId: 'CREDIT_CARD',
paymentCard: {
cardType: 'Visa',
Expand Down Expand Up @@ -1233,6 +1235,7 @@ describe('Checkout One Click', () => {
...scapiOrderResponse,
paymentInstruments: [
{
amount: 100,
paymentMethodId: 'CREDIT_CARD',
paymentCard: {
cardType: 'Visa',
Expand Down
Loading