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

Can't see returned data beside payerID #10

Open
eliezerfaizal opened this issue Mar 3, 2023 · 10 comments
Open

Can't see returned data beside payerID #10

eliezerfaizal opened this issue Mar 3, 2023 · 10 comments

Comments

@eliezerfaizal
Copy link

Hi, I tried the code from your example on real phone (iOS). After successful payment (Sandbox), I don't receive any data beside payerID:

{payerId: 4AGX69VK7P6B8, orderId: null, paymentId: null, billingToken: }

do I need to setup business account or go live mode?

@harrowmykel
Copy link
Owner

harrowmykel commented Mar 6, 2023

This should also work in debug mode.

Please check the troubleshooting section of the readme

@tchafack
Copy link

tchafack commented May 4, 2023

This should also work in debug mode.

Please check the troubleshooting section of the readme

Heylo!
I confirm that only Payer ID and Order ID and not null

@harrowmykel
Copy link
Owner

Will check now

@harrowmykel
Copy link
Owner

New version is now available. Please use v1. 0.1

@Philnue
Copy link
Contributor

Philnue commented May 28, 2023

Still null the cart in data

@harrowmykel
Copy link
Owner

Check the bottom of the readme and activate the fields there in your paypal dev account

@Philnue
Copy link
Contributor

Philnue commented Aug 18, 2023

I did

@harrowmykel
Copy link
Owner

harrowmykel commented Aug 22, 2023

This is all the data paypal provides in the cart object. Paypal does not provide the cart items. You have to check it in your backend with the cart id.
Please create an issue at https://github.com/paypal/android-checkout-sdk to request for more features

{
    "amounts": {
        "additionalProperties": {},
        "discount": {
            "additionalProperties": {},
            "currencyCode": "USD",
            "currencyValue": "0.00"
        },
        "handlingFee": {
            "additionalProperties": {},
            "currencyCode": "USD",
            "currencyValue": "0.00"
        },
        "insurance": {
            "additionalProperties": {},
            "currencyCode": "USD",
            "currencyValue": "0.00"
        },
        "shippingAndHandling": {
            "additionalProperties": {},
            "currencyCode": "USD",
            "currencyValue": "0.00"
        },
        "shippingDiscount": {
            "additionalProperties": {},
            "currencyCode": "USD",
            "currencyValue": "0.00"
        },
        "subtotal": {
            "additionalProperties": {},
            "currencyCode": "USD",
            "currencyValue": "0.00"
        },
        "tax": {
            "additionalProperties": {},
            "currencyCode": "USD",
            "currencyValue": "0.00"
        },
        "total": {
            "additionalProperties": {},
            "currencyCode": "USD",
            "currencyValue": "10.12"
        }
    },
    "billingAddress": {
        "isFullAddress": false,
        "isStoreAddress": false
    },
    "cartId": "0AJ19525KF030840E",
    "intent": "SALE",
    "items": [],
    "shippingAddress": {
        "city": "Freiburg",
        "country": "DE",
        "firstName": "Micheal",
        "isFullAddress": false,
        "isStoreAddress": false,
        "lastName": "TEST",
        "line1": "ESpachstr. 1",
        "postalCode": "79111",
        "state": "Baden-Württemberg"
    },
    "total": {
        "additionalProperties": {},
        "currencyCode": "USD",
        "currencyValue": "10.12"
    }
}

@Philnue
Copy link
Contributor

Philnue commented Aug 23, 2023

There is items : []. Can this be fillled ?

@harrowmykel
Copy link
Owner

harrowmykel commented Aug 23, 2023 via email

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

No branches or pull requests

4 participants