/// <summary> /// Json Object sent back from API. /// </summary> /// <returns>JsonObject</returns> public override JObject ToJsonObject() { return(JObjectFilter(new JObject { { LOCALE, Locale }, { PAYER, Payer?.ToJsonObject() }, { BUYER, Buyer?.ToJsonObject() }, { PAYMENT, Payment?.ToJsonObject() }, { INSTRUMENT, Instrument?.ToJsonObject() }, { FIELDS, this.FieldsToJArray <RedirectRequest>() }, })); }
/// <summary> /// Json Object sent back from API. /// </summary> /// <returns>JsonObject</returns> public override JObject ToJsonObject() { return(JObjectFilter(new JObject { { LOCALE, Locale }, { PAYER, Payer?.ToJsonObject() }, { BUYER, Buyer?.ToJsonObject() }, { PAYMENT, Payment?.ToJsonObject() }, { SUBSCRIPTION, Subscription?.ToJsonObject() }, { FIELDS, this.FieldsToJArray <RedirectRequest>() }, { RETURN_URL, ReturnUrl }, { PAYMENT_METHOD, PaymentMethod }, { CANCEL_URL, CancelUrl }, { IP_ADDRESS, IpAddress }, { USER_AGENT, UserAgent }, { EXPIRATION, Expiration }, { CAPTURE_ADDRESS, CaptureAddress }, { SKIP_RESULT, SkipResult }, { NO_BUYER_FILL, NoBuyerFill }, })); }