Stripe Payment URl is empty

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
DamanMokha
Posts: 13
Joined: 29 Mar 2023, 03:00

Stripe Payment URl is empty

Post by DamanMokha » 12 Apr 2023, 12:22

Hi, I have set up the Stripe service by installing the package and configuring it from the admin panel. After adding the Stripe service to the basket and placing the order using the Order API, the Stripe href for redirection is empty. I have attached response.

Code: Select all

{
    "meta": {
        "total": 1,
        "prefix": null,
        "content-baseurl": "",
        "csrf": {
            "name": "_token",
            "value": "dVK1RrMOcqQStBuYb6hdkMV4cJK4v0Lq7KHMUoTb"
        }
    },
    "links": {
        "self": "http://localhost:8000/jsonapi/order"
    },
    "data": {
        "id": "9",
        "type": "order",
        "links": {
            "self": {
                "href": "http://localhost:8000/jsonapi/order?id=9",
                "allow": [
                    "GET"
                ]
            },
            "process": {
                "href": "",
                "allow": [
                    "POST"
                ],
                "meta": {
                    "paymenttoken": {
                        "code": "paymenttoken",
                        "type": "string",
                        "label": "Authentication token",
                        "public": false,
                        "default": "",
                        "required": true,
                        "value": null
                    },
                    "payment.cardno": {
                        "code": "payment.cardno",
                        "type": "container",
                        "label": "Credit card number",
                        "public": true,
                        "default": "",
                        "required": false,
                        "value": null
                    },
                    "payment.expiry": {
                        "code": "payment.expiry",
                        "type": "container",
                        "label": "Expiry",
                        "public": true,
                        "default": "",
                        "required": false,
                        "value": null
                    },
                    "payment.cvv": {
                        "code": "payment.cvv",
                        "type": "container",
                        "label": "Verification number",
                        "public": true,
                        "default": "",
                        "required": false,
                        "value": null
                    }
                }
            }
        },
        "attributes": {
            "order.id": "9",
            "order.channel": "jsonapi",
            "order.invoiceno": "",
            "order.statusdelivery": -1,
            "order.statuspayment": -1,
            "order.datedelivery": null,
            "order.datepayment": null,
            "order.relatedid": ""
        },
        "relationships": {}
    },
    "included": []
}
Could you please guide me as to why it is like that?

User avatar
aimeos
Administrator
Posts: 7893
Joined: 01 Jan 1970, 00:00

Re: Stripe Payment URl is empty

Post by aimeos » 17 Apr 2023, 08:25

Are you using the JSON API exclusively to build a PWA or do you use the HTML frontend and enhancing it using the JSON API?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply