Open adamaltman opened 8 years ago
Willdo!
On Fri, Jul 29, 2016 at 5:16 AM, Adam Altman notifications@github.com wrote:
Rebilly.js uses a signature created as shown in PHP. We need an equivalent for .NET too:
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Rebilly/Rebilly-NET-SDK/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AB8nq6bjZlMiigtp7bxz_GsOMJoZWJZUks5qae8OgaJpZM4JYIwv .
Thanks, here is a reference from the older implementation. https://github.com/Rebilly/rebilly-dotnet-client/blob/master/Library/Rebilly/RebillySignature.cs
Gotcha. Thanks. The SDK is coming along nicely and it has good test code coverage. I haven't worked on it much in the last couple of weeks; however, the plan is to work on it for 1-2 hours a day for the next two weeks, at which time I should 90+% of the entities mapped.
How's your team going with the new rules engine?
Enjoy your weekend and I'll talk to you soon,
Ryan
On Fri, Jul 29, 2016 at 8:39 AM, Adam Altman notifications@github.com wrote:
Thanks, here is a reference from the older implementation. https://github.com/Rebilly/rebilly-dotnet-client/blob/master/Library/Rebilly/RebillySignature.cs
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Rebilly/Rebilly-NET-SDK/issues/1#issuecomment-236214708, or mute the thread https://github.com/notifications/unsubscribe-auth/AB8nq0FpbP5os8AfqKpCzv636nPIAY_gks5qah6mgaJpZM4JYIwv .
Gotcha. Thanks. The SDK is coming along nicely and it has good test code coverage. I haven't worked on it much in the last couple of weeks; however, the plan is to work on it for 1-2 hours a day for the next two weeks, at which time I should 90+% of the entities mapped.
How's your team going with the new rule engine?
Enjoy your weekend and I'll talk to you soon,
Ryan
On Fri, Jul 29, 2016 at 8:39 AM, Adam Altman notifications@github.com wrote:
Thanks, here is a reference from the older implementation. https://github.com/Rebilly/rebilly-dotnet-client/blob/master/Library/Rebilly/RebillySignature.cs
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Rebilly/Rebilly-NET-SDK/issues/1#issuecomment-236214708, or mute the thread https://github.com/notifications/unsubscribe-auth/AB8nq0FpbP5os8AfqKpCzv636nPIAY_gks5qah6mgaJpZM4JYIwv .
Pretty good. We hit one snag related to the event and rule tracking. However, the control/configuration api is nearly complete.
I can relate to how difficult it is to make major architectural changes after the system is live! Great to hear you guys are making good progress.
Talk to you soon,
Ryan
On Fri, Jul 29, 2016 at 8:53 AM, Adam Altman notifications@github.com wrote:
Pretty good. We hit one snag related to the event and rule tracking. However, the control/configuration api is nearly complete.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Rebilly/Rebilly-NET-SDK/issues/1#issuecomment-236218493, or mute the thread https://github.com/notifications/unsubscribe-auth/AB8nq3ij981iYL0xP01L0Rgk-_LpLUPRks5qaiIJgaJpZM4JYIwv .
OK. I have finished the Signature class and I need to integrate it into the client now.
Two quick questions:
1) How should I fit this into my client class. Should I provide a second constructor and use the signature auth for all requests, or should I just use for the create token calls? 2) Can you point me in the direction of some usage examples for the php client? I want to keep the libraries consistent.
This doco. mentions the format and that it is only used for creating client side tokens:
https://my.rebilly.com/api/documentation/#paymentToken-Create
and here's how it fits into the js client side library:
https://my.rebilly.com/api/jsdoc/#usage-Token-Creation
Ryan
On Fri, Jul 29, 2016 at 8:57 AM, Ryan McFadden ryanpmcfadden@gmail.com wrote:
I can relate to how difficult it is to make major architectural changes after the system is live! Great to hear you guys are making good progress.
Talk to you soon,
Ryan
On Fri, Jul 29, 2016 at 8:53 AM, Adam Altman notifications@github.com wrote:
Pretty good. We hit one snag related to the event and rule tracking. However, the control/configuration api is nearly complete.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Rebilly/Rebilly-NET-SDK/issues/1#issuecomment-236218493, or mute the thread https://github.com/notifications/unsubscribe-auth/AB8nq3ij981iYL0xP01L0Rgk-_LpLUPRks5qaiIJgaJpZM4JYIwv .
So, we have 3 API authentication methods. This is just a utility class, because the rebilly JS needs a value in the client browser, that is not a secret, that can be used for authentication (it only has permissions to POST v2/tokens or v2.1/tokens).
We structured this in the PHP SDK in a stand-alone Util
directory, because I don't think it would be used by the client to connect to Rebilly, just to help create this signature which the frontend client app will need if it uses Rebilly.js.
https://github.com/Rebilly/rebilly-php/blob/master/src/Util/RebillySignature.php
Got i!. I'll provide a code example on the README.md page as this will be a common task.
Ryan
On Fri, Jul 29, 2016 at 10:42 AM, Adam Altman notifications@github.com wrote:
So, we have 3 API authentication methods. This is just a helper method, because the rebilly JS needs a value in the client browser, that is not a secret, that can be used for authentication (it only has permissions to POST v2/tokens or v2.1/tokens).
We structured this in the PHP SDK in a stand-alone Util directory, because I don't think it would be used by the client to connect to Rebilly, just to help create this signature which the frontend client app will need if it uses Rebilly.js.
https://github.com/Rebilly/rebilly-php/blob/master/src/Util/RebillySignature.php
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Rebilly/Rebilly-NET-SDK/issues/1#issuecomment-236245513, or mute the thread https://github.com/notifications/unsubscribe-auth/AB8nq1z69rcI0PApTEYkcd4ldVhr_-tuks5qajt8gaJpZM4JYIwv .
Rebilly.js uses a signature created as shown in PHP. We need an equivalent for .NET too:
https://github.com/Rebilly/rebilly-php/blob/9ee460361827aa938999c1acab30b42d3774709a/src/Util/RebillySignature.php#L44