callPaypalService method

Future callPaypalService(
  1. BuildContext context
)

Implementation

Future callPaypalService(BuildContext context) async {
  await IncodesPaymentServices.paypalPayment(
    context: context,
    clientId: "AdafNSOlaLaavLWrfJhW6AyJx5PfrwdYyechxcyNGpmDwfyQNvxVs8PMwduh27sPQ4whrWWdwidbpkM3",
    secretKey: "EAAH2JkOBAnGOgRE8oWNYj7LcK7u2yVgplk9aXCZIeusx8BZdeP6P0DB3sppbJ-wNE7XzlFU226RknW6",
    transactions: const [
      {
        "amount": {
          "total": '70',
          "currency": "USD",
          "details": {"subtotal": '70', "shipping": '0', "shipping_discount": 0}
        },
        "description": "The payment transaction description.",
        "item_list": {
          "items": [
            {"name": "Apple", "quantity": 4, "price": '5', "currency": "USD"},
            {"name": "Pineapple", "quantity": 5, "price": '10', "currency": "USD"}
          ],
        }
      }
    ],
  );
}