Skip to content

Setting no shipping to a purchase #277

@Manu-DBasto

Description

@Manu-DBasto

How can i specify that the purchase doesn't need shipping, i've on the library files that there is a a noShipping option, but i dont know if this is working because i still see the shipping details options on user paypal dashboard and on the business dashboard the transaction is completed but still appears on the shipping center.
This is how im making the purchase request:

                $response = $this->gateway->purchase(array(
                    'amount' => number_format($payAmount, 2, '.', ''),
                    'currency' => session('currency'),
                    'description' => 'Compra de articulos de prueba',
                    'soft_descriptor' => 'Pago de concepto',
                    'items' => $itemsList,
                    'noShipping' => true,
                    'shipping' => false,
                    'returnUrl' => url('get-success'),
                    'cancelUrl' => url('payment-error')
                ))->send();

Also here is the completePurchase execution if it helps in some way:

                $transaction = $this->gateway->completePurchase(array(
                    'payer_id' => $req->input('PayerID'),
                    'transactionReference' => $req->input('paymentId')
                ));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions