Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting must be valid amount response message from Affirm #76

Open
sandeep18051989 opened this issue Aug 10, 2023 · 0 comments
Open

Getting must be valid amount response message from Affirm #76

sandeep18051989 opened this issue Aug 10, 2023 · 0 comments
Labels

Comments

@sandeep18051989
Copy link

I am working on an Affirm payment method integration. Sending checkut object to Affirm, but getting an error message:
{
"status_code": 400,
"type": "invalid_request",
"message": "Invalid Request: Must be valid Amount"
}

Given below is the checkout object I am sending with public API key as well:
{
"merchant": {
"user_confirmation_url": "http://localhost/Able9B6750Test3/Affirm/Confirm",
"user_cancel_url": "http://localhost/Able9B6750Test3/Checkout/Payment",
"public_api_key": "ABCDEFGHI",
"user_confirmation_url_action": "GET",
"name": "W2M.Affirm"
},
"shipping": {
"name": {
"first": "Market",
"last": "aa"
},
"address": {
"line1": "5628 W 120TH ST",
"line2": "",
"city": "ALSIP",
"state": "IL",
"zipcode": "60803-3410",
"country": "United States"
},
"phone_number": "1-888-128-3772",
"email": "admin@gmail.com"
},
"billing": {
"name": {
"first": "Web2Market",
"last": "Web2Market"
},
"address": {
"line1": "5628 W 120TH ST",
"line2": "",
"city": "ALSIP",
"state": "IL",
"zipcode": "60803-2210",
"country": "United States"
},
"phone_number": "1-888-968-3772",
"email": "skumar@web2market.com"
},
"items": [
{
"display_name": "Prima Chain Lock (66", Heavy Duty); Universal",
"sku": "0300-0103 ",
"unit_price": 101,
"qty": 1,
"item_image_url": "http://localhost/Able9B6750Test3/Assets/ProductImages/0300-0103.jpg",
"item_url": "http://localhost/Able9B6750Test3/Abandoned-Products/Prima-Chain-Lock-66-Heavy-Duty-Universal",
"categories": [
[
"Springs"
]
]
}
],
"discounts": null,
"metadata": {
"shipping_type": "Free Shipping",
"mode": "redirect"
},
"order_id": "6260588",
"currency": "USD",
"financing_program": "",
"shipping_amount": 0,
"tax_amount": 10,
"total": 111
}

Also, checkout oubject is being build while I am on payment page and it has orderID and OrderNumber required. But, Order is not yet generated on my ecommerce website. What should I do ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant