Paypal Payment REST API web experience profile

前端 未结 3 611
难免孤独
难免孤独 2021-01-20 01:00

I am using the paypals rest API and integrating paypal with payments.

I manage to create the web experience profile with the following code, but i cant run this code

3条回答
  •  难免孤独
    2021-01-20 01:23

    In addition to the previous answer -

    • You first Create a profile with a name
    • After it's created, if you want to use the profile, use it's id (assigned to it by Paypal)

    Depending on how you want to implement this, you flow could possibly be to

    1. Obtain existing profiles (if any)

    2. Then evaluate whether you want to add or obtain the id

      • if name (or id) exists, obtain/use its id, otherwise,
      • if you add (Create), the response will return the id

    Hth...

提交回复
热议问题