spec/integration/braintree/transaction_spec.rb in braintree-2.40.0 vs spec/integration/braintree/transaction_spec.rb in braintree-2.41.0
- old
+ new
@@ -2782,9 +2782,25 @@
created_transaction = result.transaction
created_transaction.disputes.should == []
end
end
+
+ context "paypal" do
+ it "returns all the required paypal fields" do
+ transaction = Braintree::Transaction.find("settledtransaction")
+
+ transaction.paypal_details.debug_id.should_not be_nil
+ transaction.paypal_details.payer_email.should_not be_nil
+ transaction.paypal_details.authorization_id.should_not be_nil
+ transaction.paypal_details.payer_id.should_not be_nil
+ transaction.paypal_details.payer_first_name.should_not be_nil
+ transaction.paypal_details.payer_last_name.should_not be_nil
+ transaction.paypal_details.seller_protection_status.should_not be_nil
+ transaction.paypal_details.capture_id.should_not be_nil
+ transaction.paypal_details.refund_id.should_not be_nil
+ end
+ end
end
describe "self.hold_in_escrow" do
it "returns the transaction if successful" do
result = Braintree::Transaction.create(