paypal / android-checkout-sdk

Apache License 2.0
77 stars 37 forks source link

Feature: Payment instructions in the PurchaseUnit #288

Open DevFreeze opened 8 months ago

DevFreeze commented 8 months ago

It would be nice to be able to add payment instructions for the purchase unit in order to add platform fees.

The purchase unit can receive additional instructions for each purchase: Purchase unit request

"payment_instruction": {
    "platform_fees": [
        {
            "amount": {
                "currency_code": "str",
                "value": "string"
            },
           "payee": 
            {
                "email_address": "string",
                "merchant_id": "stringstrings"
            }
        }
    ],
    "payee_pricing_tier_id": "string",
    "payee_receivable_fx_rate_id": "string",
    "disbursement_mode": "INSTANT"
},

If there is already a different solution how we can collect platform fees, that would also be nice.

github-actions[bot] commented 8 months ago

Thank you for reaching out to the Native Checkout SDK team. This integration path is now inactive for new merchants. If you are an existing merchant, please contact us here for further assistance.

New merchants can integrate the Native Checkout experience via the Braintree Android SDK or PayPal Android SDK. For more information please see their respective developer documentation linked below.