Skip to content
/ alder Public

Incomm Alder Api, reference paypal api client

Notifications You must be signed in to change notification settings

pengan95/alder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#REST API CLIENT FOR InComm Alder

  • support access token cache
 $apiContext = new \InCommAlder\Common\ApiContext(CLIENT_ID,CLIENT_SECRET,
        [
            'log_path' => '',
            'credential_cache' => dirname(__FILE__) . DIRECTORY_SEPARATOR . "credential.json" //支持缓存api凭证
        ]);
    $apiContext->auth(new \InCommAlder\Common\RestHandler());
  • support init by Array, Json
    $json_str = '{"PurchaseOrderNumber":"144353","CatalogId":1,"Metadata":"metadatabababb","CustomerOrderId":"TEST202009281134","EmailTheme":"","Recipients":[{"ShippingMethod":"","LanguageCultureCode":"zh-CN","FirstName":"Hopper","LastName":"Huang","EmailAddress":"hopperhuang@meikaitech.com","Address1":"","Address2":"","City":"","StateProvinceCode":"","PostalCode":"","CountryCode":"","DeliverEmail":false,"Products":[{"Sku":"VUSD-D-V-00","Value":25,"Quantity":1,"EmbossedTextId":0,"Packaging":"","MessageText":"Thanks a lot","MessageRecipientName":"HopperHuang","MessageSenderName":"Extrabux"}]}]}';
    $orderRequest = new \InCommAlder\Api\OrderRequest($json_str);

    $arr = [];
    $orderRequest = new \InCommAlder\Api\OrderRequest($arr);

###TODO LIST

  1. add valid method for OrderRequest

About

Incomm Alder Api, reference paypal api client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages