How do I extract OrderID from this object/response & pass it to another function onApproval? (Paypal API)
问题 Please see this example -> https://developer.paypal.com/demo/checkout/#/pattern/client The createOrder func there returns this -> {"id":"8GS56714S6789541X","intent":"CAPTURE","status":"CREATED","purchase_units":[{"reference_id":"default","amount":{"currency_code":"USD","value":"88.44"},"payee":{"email_address":"barco.03-facilitator@gmail.com","merchant_id":"YQZCHTGHUK5P8"}}],"create_time":"2021-02-04T02:47:04Z","links":[{"href":"https://api.sandbox.paypal.com/v2/checkout/orders