Skip to content

Commit

Permalink
fix: Update klarna order
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Apr 12, 2022
1 parent 8c5249d commit a78b9ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/KlarnaPayment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export default function KlarnaPayment({
const shipping_address = {
given_name: order?.shipping_address?.first_name,
family_name: order?.shipping_address?.last_name,
email: order?.customer_email,
street_address: order?.shipping_address?.line_1,
street_address2: order?.shipping_address?.line_2,
postal_code: order?.shipping_address?.zip_code,
Expand All @@ -151,7 +152,7 @@ export default function KlarnaPayment({
shipping_address,
billing_address,
order_amount: order?.total_amount_cents,
order_tax_amount: order?.total_amount_with_taxes_cents,
// order_tax_amount: order?.total_tax_amount_cents,
order_lines: klarnaOrderLines(order?.line_items),
}
console.log('order', order)
Expand Down

0 comments on commit a78b9ba

Please sign in to comment.