Updates to Future Payment Sample

- Renamed CorrelationId to ClientMetadataId
- Updated Source and Docs
This commit is contained in:
japatel
2015-01-09 14:16:30 -06:00
parent e665662688
commit 291ce9c160
5 changed files with 65 additions and 1508 deletions

View File

@@ -18,18 +18,18 @@ class FuturePayment extends Payment
* Extends the Payment object to create future payments
*
* @param null $apiContext
* @param $correlationId
* @param string|null $clientMetadataId
* @return $this
*/
public function create($apiContext = null, $correlationId = null)
public function create($apiContext = null, $clientMetadataId = null)
{
if ($apiContext == null) {
$apiContext = new ApiContext(self::$credential);
}
$headers = array();
if ($correlationId != null) {
if ($clientMetadataId != null) {
$headers = array(
'PAYPAL-CLIENT-METADATA-ID' => $correlationId
'PAYPAL-CLIENT-METADATA-ID' => $clientMetadataId
);
}
$payLoad = $this->toJSON();