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 find noshipping-option (REST) #175

Open
abc1042 opened this issue Oct 11, 2017 · 6 comments · May be fixed by #184
Open

Can't find noshipping-option (REST) #175

abc1042 opened this issue Oct 11, 2017 · 6 comments · May be fixed by #184

Comments

@abc1042
Copy link

abc1042 commented Oct 11, 2017

I change my project from the PayPal-Express API to the PayPal-REST-API, but I find no way to disable the shipping address. In the PayPal-Express-API I have to set noshipping to 1, but this doesn't work in the REST-API. Is there any solution?

Thanks a lot.

@jlttt jlttt linked a pull request Nov 15, 2017 that will close this issue
@jlttt
Copy link

jlttt commented Nov 15, 2017

Same need here.
According to the Paypal Payment REST API, this option is not availiable. But there is an option, application_context.shipping_preference, which can be set to NO_SHIPPING to disable the shipping address (find in the SUPPORTED_REST_FIELDS object of the Paypal button script).

I submit a PR.

@renielsalvador
Copy link

I am having the same problem. How to apply this? @jlttt
Thanks.

@jlttt
Copy link

jlttt commented Feb 1, 2018

@renielDev You can have a look at the file changes of the PR #184.

@Zer0101
Copy link

Zer0101 commented Feb 14, 2018

You can use PayPal Web experience profiles - link. Just create customized profile and add parameter 'experienceProfileId' to your gateway initialization.

@delatbabel
Copy link
Contributor

The PR referenced can't currently be merged because of code conflicts. I'll resolve that when I can.

@Nykilor
Copy link

Nykilor commented Mar 31, 2021

Because this is still open for anyone who wants to disable the shipping during the payment using paypal rest api:

$transaction = $gateway->purchase($operation);
$data = $transaction->getData();
$data['application_context']['shipping_preference'] = 'NO_SHIPPING';
$response = $transaction->sendData($data);

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

Successfully merging a pull request may close this issue.

6 participants