Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Patel committed Aug 17, 2015
2 parents 54d42e0 + fd6801c commit 70b03c5
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 18 deletions.
2 changes: 0 additions & 2 deletions README.md
Expand Up @@ -22,10 +22,8 @@ __Welcome to PayPal PHP SDK__. This repository contains PayPal's PHP SDK and sam

## Latest Updates

- Vault APIs now have List Credit Card with Filters, new Fields to help you find the object easily. Checkout the latest release.
- Checkout the latest 1.0.0 release. Here are all the [ breaking Changes in v1.0.0 ](https://github.com/paypal/PayPal-PHP-SDK/wiki/Breaking-Changes---1.0.0) if you are migrating from older versions.
- Now we have a [Github Page](http://paypal.github.io/PayPal-PHP-SDK/), that helps you find all helpful resources building applications using PayPal-PHP-SDK.
- Introduced `DEBUG` level to logging. Deprecated `FINE`. Ability to restrict `DEBUG` level on `live` mode. [Read More](https://github.com/paypal/PayPal-PHP-SDK/wiki/Logging).


## Prerequisites
Expand Down
2 changes: 1 addition & 1 deletion lib/PayPal/Core/PayPalConstants.php
Expand Up @@ -12,7 +12,7 @@ class PayPalConstants
{

const SDK_NAME = 'PayPal-PHP-SDK';
const SDK_VERSION = '1.5.0';
const SDK_VERSION = '1.5.1';

/**
* Approval URL for Payment
Expand Down
6 changes: 6 additions & 0 deletions release_notes.md
@@ -1,5 +1,11 @@
PayPal PHP SDK release notes
============================
v1.5.1
----
* Fixed a bug #343 in Future Payment
* Minor Improvements
* Updates to Sample Docs

v1.5.0
----
* Enabled Vault List API
Expand Down
25 changes: 13 additions & 12 deletions tests/PayPal/Test/Functional/Api/InvoiceFunctionalTest.php
Expand Up @@ -91,18 +91,6 @@ public function testSend($invoice)
return $invoice;
}

/**
* @depends testSend
* @param $invoice Invoice
* @return Invoice
*/
public function testUpdate($invoice)
{
$result = $invoice->update($this->apiContext, $this->mockPayPalRestCall);
$this->assertNotNull($result);
$this->assertEquals($invoice->getId(), $result->getId());
}

/**
* @depends testSend
* @param $invoice Invoice
Expand Down Expand Up @@ -133,6 +121,19 @@ public function testGetAll($invoice)
$this->assertEquals($invoice->getId(), $foundObject->getId());
}


/**
* @depends testSend
* @param $invoice Invoice
* @return Invoice
*/
public function testUpdate($invoice)
{
$result = $invoice->update($this->apiContext, $this->mockPayPalRestCall);
$this->assertNotNull($result);
$this->assertEquals($invoice->getId(), $result->getId());
}

/**
* @depends testSend
* @param $invoice Invoice
Expand Down
Expand Up @@ -16,7 +16,7 @@
"openIdConnect": {}
},
"request": {
"path": "v1/invoicing/invoices/INV2-EHNV-LJ5S-A7DZ-V6NJ/send",
"path": "v1/invoicing/invoices/INV2-RF6D-L66T-D7H2-CRU7/send",
"method": "POST",
"headers": {
"X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api.paypal.com/v1/payments/.*\",\"https://api.paypal.com/v1/vault/credit-card/.*\",\"https://api.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}"
Expand Down
Expand Up @@ -16,7 +16,7 @@
"openIdConnect": {}
},
"request": {
"path": "v1/invoicing/invoices/INV2-8UZ6-Q3DK-VZXV-SXQB",
"path": "v1/invoicing/invoices/INV2-RF6D-L66T-D7H2-CRU7",
"method": "PUT",
"headers": {
"X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api.paypal.com/v1/payments/.*\",\"https://api.paypal.com/v1/vault/credit-card/.*\",\"https://api.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}"
Expand Down Expand Up @@ -80,7 +80,7 @@
"status": "",
"headers": {},
"body": {
"id": "INV2-8UZ6-Q3DK-VZXV-SXQB",
"id": "INV2-RF6D-L66T-D7H2-CRU7",
"number": "0014",
"status": "DRAFT",
"merchant_info": {
Expand Down

0 comments on commit 70b03c5

Please sign in to comment.