C# Class PayPal.Api.PayPalRelationalObject

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

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

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".
Résultat string

GetHateoasLink() public méthode

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

GetTokenFromApprovalUrl() public méthode

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