C# Class PayPal.Api.PayPalRelationalObject

Represents a PayPal model object that will be returned from PayPal containing common resource data.
Inheritance: PayPalResource
Mostrar archivo Open project: paypal/PayPal-NET-SDK Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
GetApprovalUrl ( bool setUserActionParameter = false ) : string

Gets the approval URL from a list of HATEOAS links.

GetHateoasLink ( string relationName ) : Links

Gets the HATEOAS link that matches the specified relation name.

GetTokenFromApprovalUrl ( ) : string

Gets the resource token from an approval URL HATEOAS link, if found.

Method Details

GetApprovalUrl() public method

Gets the approval URL from a list of HATEOAS links.
public GetApprovalUrl ( bool setUserActionParameter = false ) : string
setUserActionParameter bool If true, appends the 'useraction' URL query parameter. /// For PayPal payments, this will set the approval button text on the PayPal site to "Pay Now".
return string

GetHateoasLink() public method

Gets the HATEOAS link that matches the specified relation name.
public GetHateoasLink ( string relationName ) : Links
relationName string The name of the link relation.
return Links

GetTokenFromApprovalUrl() public method

Gets the resource token from an approval URL HATEOAS link, if found.
public GetTokenFromApprovalUrl ( ) : string
return string